UNPKG

2.91 kBJavaScriptView Raw
1module.exports = {
2 extends: './ideal.js',
3 // Disabling all rules with errors from `ideal.js` (which represents the ideal state)
4 // Process:
5 // 1. Delete a line from `rules`
6 // 2. Lint
7 // 3. Fix (first run auto-fix with `npm run lint:js:fix`, then manually fix rest)
8 // 4. PR
9 // When `rules` is empty, we rename `ideal.js` to `index.js` and delete this file.
10 rules: {
11 'import/newline-after-import': 'off',
12 'import/no-dynamic-require': 'off',
13 'no-unused-vars': 'off',
14 'no-param-reassign': 'off',
15 'no-shadow': 'off',
16 'space-before-blocks': 'off',
17 'max-len': 'off',
18 'global-require': 'off',
19 'object-curly-spacing': 'off',
20 'no-undef': 'off',
21 'no-console': 'off',
22 'quotes': 'off',
23 'no-mixed-operators': 'off',
24 'comma-dangle': 'off',
25 'semi': 'off',
26 'object-shorthand': 'off',
27 'no-useless-escape': 'off',
28 'block-spacing': 'off',
29 'indent': 'off',
30 'no-unneeded-ternary': 'off',
31 'lines-around-directive': 'off',
32 'strict': 'off',
33 'no-var': 'off',
34 'prefer-template': 'off',
35 'no-multi-spaces': 'off',
36 'padded-blocks': 'off',
37 'no-lonely-if': 'off',
38 'consistent-return': 'off',
39 'func-names': 'off',
40 'prefer-const': 'off',
41 'no-else-return': 'off',
42 'no-return-await': 'off',
43 'arrow-parens': 'off',
44 'default-case': 'off',
45 'prefer-arrow-callback': 'off',
46 'radix': 'off',
47 'space-before-function-paren': 'off',
48 'vars-on-top': 'off',
49 'prefer-spread': 'off',
50 'no-plusplus': 'off',
51 'keyword-spacing': 'off',
52 'space-in-parens': 'off',
53 'space-infix-ops': 'off',
54 'no-case-declarations': 'off',
55 'no-unreachable': 'off',
56 'quote-props': 'off',
57 'eol-last': 'off',
58 'no-multiple-empty-lines': 'off',
59 'import/prefer-default-export': 'off',
60 'no-underscore-dangle': 'off',
61 'semi-spacing': 'off',
62 'no-extra-semi': 'off',
63 'brace-style': 'off',
64 'import/no-extraneous-dependencies': 'off',
65 'import/first': 'off',
66 'no-dupe-keys': 'off',
67 'template-curly-spacing': 'off',
68 'no-nested-ternary': 'off',
69 'no-trailing-spaces': 'off',
70 'no-useless-constructor': 'off',
71 'class-methods-use-this': 'off',
72 'no-restricted-syntax': 'off',
73 'no-unused-expressions': 'off',
74 'no-use-before-define': 'off',
75 'arrow-body-style': 'off',
76 'no-prototype-builtins': 'off',
77 'spaced-comment': 'off',
78 'wrap-iife': 'off',
79 'no-floating-decimal': 'off',
80 'no-script-url': 'off',
81 'curly': 'off',
82 'import/extensions': 'off',
83 'dot-notation': 'off',
84 'key-spacing': 'off',
85 'no-cond-assign': 'off',
86 'guard-for-in': 'off',
87 'block-scoped-var': 'off',
88 'no-redeclare': 'off',
89 'prefer-rest-params': 'off',
90 'array-callback-return': 'off',
91 'no-empty': 'off',
92 'one-var': 'off',
93 'one-var-declaration-per-line': 'off',
94 'new-parens': 'off',
95 },
96};