From 498e9f3a5dbe665e896475ceb7f6d374749d04a7 Mon Sep 17 00:00:00 2001 From: Ian Dees Date: Sun, 17 Nov 2024 15:02:02 -0600 Subject: [PATCH] Fix eslint errors in eslint config doc --- task/eslint.config.js | 64 +++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/task/eslint.config.js b/task/eslint.config.js index d85f4a42..e5a6fd35 100644 --- a/task/eslint.config.js +++ b/task/eslint.config.js @@ -1,38 +1,38 @@ -import js from "@eslint/js"; -import nodePlugin from "eslint-plugin-n"; +import js from '@eslint/js'; +import nodePlugin from 'eslint-plugin-n'; export default [ js.configs.recommended, - nodePlugin.configs["flat/recommended-module"], + nodePlugin.configs['flat/recommended-module'], { - "rules": { - "no-console": 0, - "arrow-parens": [ "error", "always" ], - "no-var": "error", - "prefer-const": "error", - "array-bracket-spacing": [ "error", "never" ], - "comma-dangle": [ "error", "never" ], - "computed-property-spacing": [ "error", "never" ], - "eol-last": "error", - "eqeqeq": [ "error", "smart" ], - "indent": [ "error", 4, { "SwitchCase": 1 } ], - "no-confusing-arrow": [ "error", { "allowParens": false } ], - "no-extend-native": "error", - "no-mixed-spaces-and-tabs": "error", - "func-call-spacing": [ "error", "never" ], - "no-trailing-spaces": "error", - "no-unused-vars": "error", - "no-use-before-define": [ "error", "nofunc" ], - "object-curly-spacing": [ "error", "always" ], - "prefer-arrow-callback": "error", - "quotes": [ "error", "single", "avoid-escape" ], - "semi": [ "error", "always" ], - "space-infix-ops": "error", - "spaced-comment": [ "error", "always" ], - "keyword-spacing": [ "error", { "before": true, "after": true } ], - "template-curly-spacing": [ "error", "never" ], - "semi-spacing": "error", - "strict": "error", + 'rules': { + 'no-console': 0, + 'arrow-parens': ['error', 'always'], + 'no-var': 'error', + 'prefer-const': 'error', + 'array-bracket-spacing': ['error', 'never'], + 'comma-dangle': ['error', 'never'], + 'computed-property-spacing': ['error', 'never'], + 'eol-last': 'error', + 'eqeqeq': ['error', 'smart'], + 'indent': ['error', 4, { 'SwitchCase': 1 }], + 'no-confusing-arrow': ['error', { 'allowParens': false }], + 'no-extend-native': 'error', + 'no-mixed-spaces-and-tabs': 'error', + 'func-call-spacing': ['error', 'never'], + 'no-trailing-spaces': 'error', + 'no-unused-vars': 'error', + 'no-use-before-define': ['error', 'nofunc'], + 'object-curly-spacing': ['error', 'always'], + 'prefer-arrow-callback': 'error', + 'quotes': ['error', 'single', 'avoid-escape'], + 'semi': ['error', 'always'], + 'space-infix-ops': 'error', + 'spaced-comment': ['error', 'always'], + 'keyword-spacing': ['error', { 'before': true, 'after': true }], + 'template-curly-spacing': ['error', 'never'], + 'semi-spacing': 'error', + 'strict': 'error' } } -] +];