|
1 | 1 | module.exports={
|
2 |
| -parser:'typescript-eslint-parser', |
3 |
| -//extends: [ |
4 |
| -// 'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react |
5 |
| -// 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin |
6 |
| -// 'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier |
7 |
| -// 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. |
8 |
| -//], |
9 |
| -parserOptions:{ |
10 |
| -ecmaVersion:2018,// Allows for the parsing of modern ECMAScript features |
11 |
| -sourceType:'module',// Allows for the use of imports |
12 |
| -ecmaFeatures:{ |
13 |
| -jsx:true,// Allows for the parsing of JSX |
14 |
| -useJSXTextNode:true, |
15 |
| -}, |
16 |
| -}, |
17 |
| -rules:{ |
18 |
| -// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs |
19 |
| -// e.g. |
20 |
| -'arrow-parens':0, |
21 |
| -'comma-dangle':0, |
22 |
| -'global-require':0, |
23 |
| -'import/no-extraneous-dependencies':0, |
24 |
| -'import/no-named-as-default':0, |
25 |
| -'import/prefer-default-export':0, |
26 |
| -'jsx-a11y/href-no-hash':0, |
27 |
| -quotes:['error','single'], |
28 |
| -'no-tabs':0, |
29 |
| -'react/jsx-curly-spacing':0, |
30 |
| -'react/jsx-indent-props':'off', |
31 |
| -'react/prop-types':0, |
32 |
| -'react/sort-comp':0, |
33 |
| -'react/prefer-stateless-function':0, |
34 |
| -semi:['error','never'], |
35 |
| -'object-curly-newline':0, |
36 |
| -'react/jsx-indent':'off', |
37 |
| -'class-methods-use-this':0, |
38 |
| -indent:'off', |
39 |
| -'implicit-arrow-linebreak':'off', |
40 |
| -'function-paren-newline':'off', |
41 |
| -'lines-between-class-members':'off', |
42 |
| -'no-unreachable':'off', |
43 |
| -'import/no-unresolved':'off', |
44 |
| -'no-unused-vars':'off', |
45 |
| -'no-confusing-arrow':'off', |
46 |
| -'no-restricted-syntax':'off', |
47 |
| -'react/jsx-one-expression-per-line':'off', |
48 |
| -'guard-for-in':'off', |
49 |
| -'no-nested-ternary':'off', |
50 |
| -'no-underscore-dangle':'off', |
51 |
| -'react/destructuring-assignment':'off', |
52 |
| -'no-return-assign':'off', |
53 |
| -'no-case-declarations':'off', |
54 |
| -'react/no-array-index-key':'off', |
55 |
| -}, |
56 |
| -settings:{ |
57 |
| -react:{ |
58 |
| -version:'detect',// Tells eslint-plugin-react to automatically detect the version of React to use |
59 |
| -}, |
60 |
| -}, |
| 2 | +parser:'typescript-eslint-parser', |
| 3 | +extends:[ |
| 4 | +// 'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react |
| 5 | +// 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin |
| 6 | +// 'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier |
| 7 | +// 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. |
| 8 | +], |
| 9 | +parserOptions:{ |
| 10 | +ecmaVersion:2018,// Allows for the parsing of modern ECMAScript features |
| 11 | +sourceType:'module',// Allows for the use of imports |
| 12 | +ecmaFeatures:{ |
| 13 | +jsx:true,// Allows for the parsing of JSX |
| 14 | +useJSXTextNode:true, |
| 15 | +}, |
| 16 | +}, |
| 17 | +rules:{ |
| 18 | +// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs |
| 19 | +// e.g. |
| 20 | +'arrow-parens':0, |
| 21 | +'comma-dangles':0, |
| 22 | +'global-require':0, |
| 23 | +'import/no-extraneous-dependencies':0, |
| 24 | +'import/no-named-as-default':0, |
| 25 | +'import/prefer-default-export':0, |
| 26 | +'jsx-a11y/href-no-hash':0, |
| 27 | +quotes:['error','single'], |
| 28 | +'no-tabs':0, |
| 29 | +'react/jsx-curly-spacing':0, |
| 30 | +'react/jsx-indent-props':'off', |
| 31 | +'react/prop-types':0, |
| 32 | +'react/sort-comp':0, |
| 33 | +'react/prefer-stateless-function':0, |
| 34 | +semi:['error','never'], |
| 35 | +'object-curly-newline':0, |
| 36 | +'react/jsx-indent':'off', |
| 37 | +'class-methods-use-this':0, |
| 38 | +indent:'off', |
| 39 | +'implicit-arrow-linebreak':'off', |
| 40 | +'function-paren-newline':'off', |
| 41 | +'lines-between-class-members':'off', |
| 42 | +'no-unreachable':'off', |
| 43 | +'import/no-unresolved':'off', |
| 44 | +'no-unused-vars':'off', |
| 45 | +'no-confusing-arrow':'off', |
| 46 | +'no-restricted-syntax':'off', |
| 47 | +'react/jsx-one-expression-per-line':'off', |
| 48 | +'guard-for-in':'off', |
| 49 | +'no-nested-ternary':'off', |
| 50 | +'no-underscore-dangle':'off', |
| 51 | +'react/destructuring-assignment':'off', |
| 52 | +'no-return-assign':'off', |
| 53 | +'no-case-declarations':'off', |
| 54 | +'react/no-array-index-key':'off', |
| 55 | +}, |
| 56 | +settings:{ |
| 57 | +react:{ |
| 58 | +version:'detect',// Tells eslint-plugin-react to automatically detect the version of React to use |
| 59 | +}, |
| 60 | +}, |
61 | 61 | }
|