Skip to content

Commit

Permalink
Fix eslint errors in eslint config doc
Browse files Browse the repository at this point in the history
  • Loading branch information
iandees committed Nov 17, 2024

Verified

This commit was signed with the committer’s verified signature.
seanchen1991 Sean Chen
1 parent d53f11a commit 498e9f3
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions task/eslint.config.js
Original file line number Diff line number Diff line change
@@ -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'
}
}
]
];

0 comments on commit 498e9f3

Please sign in to comment.