@cabify/eslint-config 3.0.1-beta-17 → 3.0.1-beta-19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/configs/{es6/base.js → base.js} +11 -6
  2. package/eslint.config.js +5 -1
  3. package/package.json +6 -5
  4. package/recommended.js +1 -1
  5. package/vite.config.js +33 -0
  6. package/configs/commonjs/base.cjs +0 -65
  7. package/configs/commonjs/best-practices.cjs +0 -344
  8. package/configs/commonjs/errors.cjs +0 -122
  9. package/configs/commonjs/es6.cjs +0 -180
  10. package/configs/commonjs/formats.cjs +0 -6
  11. package/configs/commonjs/imports.cjs +0 -278
  12. package/configs/commonjs/jest.cjs +0 -9
  13. package/configs/commonjs/lodash.cjs +0 -9
  14. package/configs/commonjs/node.cjs +0 -40
  15. package/configs/commonjs/postcss.cjs +0 -7
  16. package/configs/commonjs/promises.cjs +0 -18
  17. package/configs/commonjs/react-a11y.cjs +0 -230
  18. package/configs/commonjs/react.cjs +0 -432
  19. package/configs/commonjs/storybook.cjs +0 -7
  20. package/configs/commonjs/strict.cjs +0 -7
  21. package/configs/commonjs/style.cjs +0 -319
  22. package/configs/commonjs/ts.cjs +0 -162
  23. package/configs/commonjs/utils.cjs +0 -11
  24. package/configs/commonjs/variables.cjs +0 -53
  25. package/recommended.cjs +0 -5
  26. /package/configs/{es6/best-practices.js → best-practices.js} +0 -0
  27. /package/configs/{es6/errors.js → errors.js} +0 -0
  28. /package/configs/{es6/es6.js → es6.js} +0 -0
  29. /package/configs/{es6/formats.js → formats.js} +0 -0
  30. /package/configs/{es6/imports.js → imports.js} +0 -0
  31. /package/configs/{es6/jest.js → jest.js} +0 -0
  32. /package/configs/{es6/lodash.js → lodash.js} +0 -0
  33. /package/configs/{es6/node.js → node.js} +0 -0
  34. /package/configs/{es6/postcss.js → postcss.js} +0 -0
  35. /package/configs/{es6/promises.js → promises.js} +0 -0
  36. /package/configs/{es6/react-a11y.js → react-a11y.js} +0 -0
  37. /package/configs/{es6/react.js → react.js} +0 -0
  38. /package/configs/{es6/storybook.js → storybook.js} +0 -0
  39. /package/configs/{es6/strict.js → strict.js} +0 -0
  40. /package/configs/{es6/style.js → style.js} +0 -0
  41. /package/configs/{es6/ts.js → ts.js} +0 -0
  42. /package/configs/{es6/utils.js → utils.js} +0 -0
  43. /package/configs/{es6/variables.js → variables.js} +0 -0
@@ -1,180 +0,0 @@
1
- const globals = require('globals');
2
-
3
- module.exports = {
4
- name: 'ES6-cabify-eslint-config',
5
- languageOptions: {
6
- ecmaVersion: 6,
7
- sourceType: 'module',
8
- globals: {
9
- ...globals.es2015,
10
- },
11
- parserOptions: {
12
- ecmaFeatures: {
13
- generators: false,
14
- objectLiteralDuplicateProperties: false,
15
- },
16
- },
17
- },
18
-
19
- rules: {
20
- // verify super() callings in constructors
21
- 'constructor-super': 'error',
22
-
23
- // enforce the spacing around the * in generator functions
24
- // https://eslint.org/docs/rules/generator-star-spacing
25
- 'generator-star-spacing': ['error', { before: false, after: true }],
26
-
27
- // disallow modifying variables of class declarations
28
- // https://eslint.org/docs/rules/no-class-assign
29
- 'no-class-assign': 'error',
30
-
31
- // disallow arrow functions where they could be confused with comparisons
32
- // https://eslint.org/docs/rules/no-confusing-arrow
33
- 'no-confusing-arrow': [
34
- 'error',
35
- {
36
- allowParens: true,
37
- },
38
- ],
39
-
40
- // disallow modifying variables that are declared using const
41
- 'no-const-assign': 'error',
42
-
43
- // disallow duplicate class members
44
- // https://eslint.org/docs/rules/no-dupe-class-members
45
- 'no-dupe-class-members': 'error',
46
-
47
- // disallow importing from the same path more than once
48
- // https://eslint.org/docs/rules/no-duplicate-imports
49
- // replaced by https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
50
- 'no-duplicate-imports': 'off',
51
-
52
- // disallow symbol constructor
53
- // https://eslint.org/docs/rules/no-new-symbol
54
- 'no-new-symbol': 'error',
55
-
56
- // disallow specific imports
57
- // https://eslint.org/docs/rules/no-restricted-imports
58
- 'no-restricted-imports': [
59
- 'off',
60
- {
61
- paths: [],
62
- patterns: [],
63
- },
64
- ],
65
-
66
- // disallow to use this/super before super() calling in constructors.
67
- // https://eslint.org/docs/rules/no-this-before-super
68
- 'no-this-before-super': 'error',
69
-
70
- // disallow useless computed property keys
71
- // https://eslint.org/docs/rules/no-useless-computed-key
72
- 'no-useless-computed-key': 'error',
73
-
74
- // disallow unnecessary constructor
75
- // https://eslint.org/docs/rules/no-useless-constructor
76
- 'no-useless-constructor': 'error',
77
-
78
- // disallow renaming import, export, and destructured assignments to the same name
79
- // https://eslint.org/docs/rules/no-useless-rename
80
- 'no-useless-rename': [
81
- 'error',
82
- {
83
- ignoreDestructuring: false,
84
- ignoreImport: false,
85
- ignoreExport: false,
86
- },
87
- ],
88
-
89
- // require let or const instead of var
90
- 'no-var': 'error',
91
-
92
- // require method and property shorthand syntax for object literals
93
- // https://eslint.org/docs/rules/object-shorthand
94
- 'object-shorthand': [
95
- 'error',
96
- 'always',
97
- {
98
- ignoreConstructors: false,
99
- avoidQuotes: true,
100
- },
101
- ],
102
-
103
- // suggest using arrow functions as callbacks
104
- 'prefer-arrow-callback': [
105
- 'error',
106
- {
107
- allowNamedFunctions: false,
108
- allowUnboundThis: true,
109
- },
110
- ],
111
-
112
- // suggest using of const declaration for variables that are never modified after declared
113
- 'prefer-const': [
114
- 'error',
115
- {
116
- destructuring: 'any',
117
- ignoreReadBeforeAssign: true,
118
- },
119
- ],
120
-
121
- // Prefer destructuring from arrays and objects
122
- // https://eslint.org/docs/rules/prefer-destructuring
123
- 'prefer-destructuring': [
124
- 'error',
125
- {
126
- VariableDeclarator: {
127
- array: false,
128
- object: true,
129
- },
130
- AssignmentExpression: {
131
- array: true,
132
- object: true,
133
- },
134
- },
135
- {
136
- enforceForRenamedProperties: false,
137
- },
138
- ],
139
-
140
- // disallow parseInt() in favor of binary, octal, and hexadecimal literals
141
- // https://eslint.org/docs/rules/prefer-numeric-literals
142
- 'prefer-numeric-literals': 'error',
143
-
144
- // suggest using Reflect methods where applicable
145
- // https://eslint.org/docs/rules/prefer-reflect
146
- 'prefer-reflect': 'off',
147
-
148
- // use rest parameters instead of arguments
149
- // https://eslint.org/docs/rules/prefer-rest-params
150
- 'prefer-rest-params': 'error',
151
-
152
- // suggest using the spread operator instead of .apply()
153
- // https://eslint.org/docs/rules/prefer-spread
154
- 'prefer-spread': 'error',
155
-
156
- // suggest using template literals instead of string concatenation
157
- // https://eslint.org/docs/rules/prefer-template
158
- 'prefer-template': 'error',
159
-
160
- // disallow generator functions that do not have yield
161
- // https://eslint.org/docs/rules/require-yield
162
- 'require-yield': 'error',
163
-
164
- // import sorting
165
- // https://eslint.org/docs/rules/sort-imports
166
- // replaced by 'imports' rules
167
- 'sort-imports': [
168
- 'off',
169
- {
170
- ignoreCase: false,
171
- ignoreMemberSort: false,
172
- memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
173
- },
174
- ],
175
-
176
- // require a Symbol description
177
- // https://eslint.org/docs/rules/symbol-description
178
- 'symbol-description': 'error',
179
- },
180
- };
@@ -1,6 +0,0 @@
1
- const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended');
2
-
3
- module.exports = {
4
- name: 'formats-cabify-eslint-config',
5
- ...eslintPluginPrettierRecommended,
6
- };
@@ -1,278 +0,0 @@
1
- const importPlugin = require('eslint-plugin-import');
2
- const simpleImportSort = require('eslint-plugin-simple-import-sort');
3
- const globals = require('globals');
4
-
5
- const configs = {
6
- name: 'imports-cabify-eslint-config',
7
- languageOptions: {
8
- globals: {
9
- ...globals.es2015,
10
- },
11
- },
12
- plugins: {
13
- 'simple-import-sort': simpleImportSort,
14
- },
15
- settings: {
16
- 'import/resolver': {
17
- node: {
18
- extensions: ['.mjs', '.js', '.json'],
19
- },
20
- },
21
- 'import/extensions': ['.js', '.mjs', '.jsx', '.ts', '.tsx'],
22
- 'import/core-modules': [],
23
- 'import/ignore': [
24
- 'node_modules',
25
- '\\.(coffee|scss|css|less|hbs|svg|json)$',
26
- ],
27
- },
28
-
29
- rules: {
30
- 'simple-import-sort/imports': 'error',
31
- 'simple-import-sort/exports': 'error',
32
-
33
- // Static analysis:
34
-
35
- // ensure imports point to files/modules that can be resolved
36
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
37
- 'import/no-unresolved': ['error', { commonjs: true, caseSensitive: true }],
38
-
39
- // ensure named imports coupled with named exports
40
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/named.md#when-not-to-use-it
41
- 'import/named': 'error',
42
-
43
- // ensure default import coupled with default export
44
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/default.md#when-not-to-use-it
45
- 'import/default': 'off',
46
-
47
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/namespace.md
48
- 'import/namespace': 'off',
49
-
50
- // Helpful warnings:
51
-
52
- // disallow invalid exports, e.g. multiple defaults
53
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/export.md
54
- 'import/export': 'error',
55
-
56
- // do not allow a default import name to match a named export
57
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-as-default.md
58
- 'import/no-named-as-default': 'error',
59
-
60
- // warn on accessing default export property names that are also named exports
61
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md
62
- 'import/no-named-as-default-member': 'error',
63
-
64
- // disallow use of jsdoc-marked-deprecated imports
65
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-deprecated.md
66
- 'import/no-deprecated': 'off',
67
-
68
- // Forbid the use of extraneous packages
69
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
70
- // paths are treated both as absolute paths, and relative to process.cwd()
71
- 'import/no-extraneous-dependencies': [
72
- 'error',
73
- {
74
- devDependencies: [
75
- '.storybook/**', // react storybooks
76
- 'storybook/**', // react storybooks
77
- '**/*.scenario.*', // storybooks scenarios
78
- '**/*.story.*', // storybooks stories
79
- '**/*.stories.*', // storybooks stories
80
- 'conf/**', // our custom conf
81
- 'test/**', // tape, common npm pattern
82
- 'tests/**', // also common npm pattern
83
- 'spec/**', // mocha, rspec-like pattern
84
- '**/__tests__/**', // jest pattern
85
- '**/__mocks__/**', // jest pattern
86
- 'test.{js,jsx}', // repos with a single test file
87
- 'test-*.{js,jsx}', // repos with multiple top-level test files
88
- '**/*{.,_}{test,spec}.{js,jsx,ts,tsx}', // tests where the extension or filename suffix denotes that it is a test
89
- '**/jest.config.js', // jest config
90
- '**/vue.config.js', // vue-cli config
91
- '**/webpack.config.js', // webpack config
92
- '**/webpack.config.*.js', // webpack config
93
- '**/rollup.config.js', // rollup config
94
- '**/rollup.config.*.js', // rollup config
95
- '**/gulpfile.js', // gulp config
96
- '**/gulpfile.*.js', // gulp config
97
- '**/Gruntfile{,.js}', // grunt config
98
- '**/protractor.conf.js', // protractor config
99
- '**/protractor.conf.*.js', // protractor config
100
- '**/postcss.config.js', // postcss config
101
- ],
102
- optionalDependencies: false,
103
- },
104
- ],
105
-
106
- // Forbid mutable exports
107
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-mutable-exports.md
108
- 'import/no-mutable-exports': 'error',
109
-
110
- // Module systems:
111
-
112
- // disallow require()
113
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md
114
- 'import/no-commonjs': 'off',
115
-
116
- // disallow AMD require/define
117
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-amd.md
118
- // 'import/no-amd': 'error',
119
-
120
- // No Node.js builtin modules
121
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-nodejs-modules.md
122
- // TODO: enable?
123
- 'import/no-nodejs-modules': 'off',
124
-
125
- // Style guide:
126
-
127
- // disallow non-import statements appearing before import statements
128
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md
129
- 'import/first': 'error',
130
-
131
- // disallow non-import statements appearing before import statements
132
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/imports-first.md
133
- // deprecated: use `import/first`
134
- 'import/imports-first': 'off',
135
-
136
- // disallow duplicate imports
137
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
138
- 'import/no-duplicates': 'error',
139
-
140
- // disallow namespace imports
141
- // TODO: enable?
142
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-namespace.md
143
- 'import/no-namespace': 'off',
144
-
145
- // Ensure consistent use of file extension within the import path
146
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
147
- 'import/extensions': [
148
- 'error',
149
- 'ignorePackages',
150
- {
151
- js: 'never',
152
- mjs: 'never',
153
- jsx: 'never',
154
- ts: 'never',
155
- tsx: 'never',
156
- },
157
- ],
158
-
159
- // ensure absolute imports are above relative imports and that unassigned imports are ignored
160
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
161
- // superseeded by import-order-alphabetical
162
- 'import/order': 'off',
163
-
164
- // Require a newline after the last import/require in a group
165
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
166
- // 'import/newline-after-import': 'error',
167
-
168
- // Require modules with a single export to use a default export
169
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
170
- 'import/prefer-default-export': 'error',
171
-
172
- // Restrict which files can be imported in a given folder
173
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md
174
- 'import/no-restricted-paths': 'off',
175
-
176
- // Forbid modules to have too many dependencies
177
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md
178
- 'import/max-dependencies': ['off', { max: 10 }],
179
-
180
- // Forbid import of modules using absolute paths
181
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md
182
- 'import/no-absolute-path': 'error',
183
-
184
- // Forbid require() calls with expressions
185
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md
186
- 'import/no-dynamic-require': 'error',
187
-
188
- // prevent importing the submodules of other modules
189
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md
190
- 'import/no-internal-modules': [
191
- 'off',
192
- {
193
- allow: [],
194
- },
195
- ],
196
-
197
- // Warn if a module could be mistakenly parsed as a script by a consumer
198
- // leveraging Unambiguous JavaScript Grammar
199
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/unambiguous.md
200
- // this should not be enabled until this proposal has at least been *presented* to TC39.
201
- // At the moment, it's not a thing.
202
- 'import/unambiguous': 'off',
203
-
204
- // Forbid Webpack loader syntax in imports
205
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md
206
- 'import/no-webpack-loader-syntax': 'error',
207
-
208
- // Prevent unassigned imports
209
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md
210
- // importing for side effects is perfectly acceptable, if you need side effects.
211
- 'import/no-unassigned-import': 'off',
212
-
213
- // Prevent importing the default as if it were named
214
- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-default.md
215
- 'import/no-named-default': 'error',
216
-
217
- // Reports if a module's default export is unnamed
218
- // https://github.com/benmosher/eslint-plugin-import/blob/d9b712ac7fd1fddc391f7b234827925c160d956f/docs/rules/no-anonymous-default-export.md
219
- 'import/no-anonymous-default-export': [
220
- 'off',
221
- {
222
- allowArray: false,
223
- allowArrowFunction: false,
224
- allowAnonymousClass: false,
225
- allowAnonymousFunction: false,
226
- allowLiteral: false,
227
- allowObject: false,
228
- },
229
- ],
230
-
231
- // This rule enforces that all exports are declared at the bottom of the file.
232
- // https://github.com/benmosher/eslint-plugin-import/blob/98acd6afd04dcb6920b81330114e146dc8532ea4/docs/rules/exports-last.md
233
- // TODO: enable?
234
- 'import/exports-last': 'off',
235
-
236
- // Reports when named exports are not grouped together in a single export declaration
237
- // or when multiple assignments to CommonJS module.exports or exports object are present
238
- // in a single file.
239
- // https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/group-exports.md
240
- 'import/group-exports': 'off',
241
-
242
- // forbid default exports. this is a terrible rule, do not use it.
243
- // https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-default-export.md
244
- 'import/no-default-export': 'off',
245
-
246
- // Prohibit named exports. this is a terrible rule, do not use it.
247
- // https://github.com/benmosher/eslint-plugin-import/blob/1ec80fa35fa1819e2d35a70e68fb6a149fb57c5e/docs/rules/no-named-export.md
248
- 'import/no-named-export': 'off',
249
-
250
- // Forbid a module from importing itself
251
- // https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-self-import.md
252
- 'import/no-self-import': 'error',
253
-
254
- // Forbid cyclical dependencies between modules
255
- // https://github.com/benmosher/eslint-plugin-import/blob/d81f48a2506182738409805f5272eff4d77c9348/docs/rules/no-cycle.md
256
- 'import/no-cycle': ['error', { maxDepth: Number.MAX_SAFE_INTEGER }],
257
-
258
- // Ensures that there are no useless path segments
259
- // https://github.com/benmosher/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/no-useless-path-segments.md
260
- 'import/no-useless-path-segments': 'error',
261
-
262
- // dynamic imports require a leading comment with a webpackChunkName
263
- // https://github.com/benmosher/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/dynamic-import-chunkname.md
264
- 'import/dynamic-import-chunkname': [
265
- 'off',
266
- {
267
- importFunctions: [],
268
- webpackChunknameFormat: '[0-9a-zA-Z-_/.]+',
269
- },
270
- ],
271
-
272
- // Use this rule to prevent imports to folders in relative parent paths.
273
- // https://github.com/benmosher/eslint-plugin-import/blob/c34f14f67f077acd5a61b3da9c0b0de298d20059/docs/rules/no-relative-parent-imports.md
274
- 'import/no-relative-parent-imports': 'off',
275
- },
276
- };
277
-
278
- module.exports = [importPlugin.flatConfigs.recommended, configs];
@@ -1,9 +0,0 @@
1
- const jest = require('eslint-plugin-jest');
2
-
3
- module.exports = {
4
- name: 'jest-cabify-eslint-config',
5
- ...jest.configs['flat/recommended'],
6
- rules: {
7
- ...jest.configs['flat/recommended'].rules,
8
- },
9
- };
@@ -1,9 +0,0 @@
1
- const lodashPlugin = require('eslint-plugin-lodash');
2
-
3
- module.exports = {
4
- name: 'lodash-cabify-eslint-config',
5
- plugins: { lodash: lodashPlugin },
6
- rules: {
7
- 'lodash/import-scope': ['error', 'method'],
8
- },
9
- };
@@ -1,40 +0,0 @@
1
- module.exports = {
2
- name: 'node-cabify-eslint-config',
3
- rules: {
4
- // enforce return after a callback
5
- 'callback-return': 'off',
6
-
7
- // require all requires be top-level
8
- // https://eslint.org/docs/rules/global-require
9
- 'global-require': 'error',
10
-
11
- // enforces error handling in callbacks (node environment)
12
- 'handle-callback-err': 'off',
13
-
14
- // disallow use of the Buffer() constructor
15
- // https://eslint.org/docs/rules/no-buffer-constructor
16
- 'no-buffer-constructor': 'error',
17
-
18
- // disallow mixing regular variable and require declarations
19
- 'no-mixed-requires': ['off', false],
20
-
21
- // disallow use of new operator with the require function
22
- 'no-new-require': 'error',
23
-
24
- // disallow string concatenation with __dirname and __filename
25
- // https://eslint.org/docs/rules/no-path-concat
26
- 'no-path-concat': 'error',
27
-
28
- // disallow use of process.env
29
- 'no-process-env': 'off',
30
-
31
- // disallow process.exit()
32
- 'no-process-exit': 'off',
33
-
34
- // restrict usage of specified node modules
35
- 'no-restricted-modules': 'off',
36
-
37
- // disallow use of synchronous methods (off by default)
38
- 'no-sync': 'off',
39
- },
40
- };
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- name: 'post-css-cabify-eslint-config',
3
- files: ['postcss.config.js'],
4
- rules: {
5
- 'global-require': 'off',
6
- },
7
- };
@@ -1,18 +0,0 @@
1
- module.exports = {
2
- name: 'promises-cabify-eslint-config',
3
- rules: {
4
- 'no-floating-promises': 'off',
5
-
6
- // disallow using an async function as a Promise executor
7
- // https://eslint.org/docs/rules/no-async-promise-executor
8
- // TODO: enable, semver-major
9
- 'no-async-promise-executor': 'off',
10
-
11
- // disallow redundant `return await`
12
- 'no-return-await': 'error',
13
-
14
- // require `await` in `async function` (note: this is a horrible rule that should never be used)
15
- // https://eslint.org/docs/rules/require-await
16
- 'require-await': 'off',
17
- },
18
- };