eslint-config-seekingalpha-base 8.17.0 → 9.0.0
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.
- package/CHANGELOG.md +8 -0
- package/flat.js +18 -2
- package/package.json +1 -1
- package/rules/eslint/flat.js +3 -4
- package/rules/eslint-plugin-array-func/flat.js +10 -0
- package/rules/eslint-plugin-import/flat.js +21 -0
- package/rules/eslint-plugin-promise/flat.js +10 -0
- package/rules/eslint-plugin-unicorn/flat.js +10 -0
package/CHANGELOG.md
CHANGED
package/flat.js
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
import esLintConfig from './rules/eslint/flat';
|
|
1
|
+
import esLintConfig from './rules/eslint/flat.js';
|
|
2
|
+
import esLintPluginArrayFuncConfig from './rules/eslint-plugin-array-func/flat.js';
|
|
3
|
+
import esLintPluginImport from './rules/eslint-plugin-import/flat.js';
|
|
4
|
+
import esLintPluginPromise from './rules/eslint-plugin-promise/flat.js';
|
|
5
|
+
import esLintPluginUnicorn from './rules/eslint-plugin-unicorn/flat.js';
|
|
2
6
|
|
|
3
|
-
// eslint-disable-next-line import/no-default-export, import/no-anonymous-default-export
|
|
4
7
|
export default {
|
|
8
|
+
plugins: {
|
|
9
|
+
...esLintPluginArrayFuncConfig.plugins,
|
|
10
|
+
...esLintPluginImport.plugins,
|
|
11
|
+
...esLintPluginPromise.plugins,
|
|
12
|
+
...esLintPluginUnicorn.plugins,
|
|
13
|
+
},
|
|
5
14
|
rules: {
|
|
6
15
|
...esLintConfig.rules,
|
|
16
|
+
...esLintPluginArrayFuncConfig.rules,
|
|
17
|
+
...esLintPluginImport.rules,
|
|
18
|
+
...esLintPluginPromise.rules,
|
|
19
|
+
...esLintPluginUnicorn.rules,
|
|
20
|
+
},
|
|
21
|
+
settings: {
|
|
22
|
+
...esLintPluginImport.settings,
|
|
7
23
|
},
|
|
8
24
|
};
|
package/package.json
CHANGED
package/rules/eslint/flat.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import layout from './layout-and-formatting';
|
|
2
|
-
import problems from './possible-problems';
|
|
3
|
-
import suggestions from './suggestions';
|
|
1
|
+
import layout from './layout-and-formatting.js';
|
|
2
|
+
import problems from './possible-problems.js';
|
|
3
|
+
import suggestions from './suggestions.js';
|
|
4
4
|
|
|
5
|
-
// eslint-disable-next-line import/no-default-export, import/no-anonymous-default-export
|
|
6
5
|
export default {
|
|
7
6
|
rules: {
|
|
8
7
|
...layout.rules,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import importPlugin from 'eslint-plugin-import';
|
|
2
|
+
|
|
3
|
+
import helpfulWarnings from './helpful-warnings.js';
|
|
4
|
+
import moduleSystem from './module-systems.js';
|
|
5
|
+
import staticAnalysis from './static-analysis.js';
|
|
6
|
+
import styleGuide from './style-guide.js';
|
|
7
|
+
|
|
8
|
+
import config from './index.js';
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
plugins: {
|
|
12
|
+
import: importPlugin,
|
|
13
|
+
},
|
|
14
|
+
rules: {
|
|
15
|
+
...helpfulWarnings.rules,
|
|
16
|
+
...moduleSystem.rules,
|
|
17
|
+
...staticAnalysis.rules,
|
|
18
|
+
...styleGuide.rules,
|
|
19
|
+
},
|
|
20
|
+
settings: config.settings,
|
|
21
|
+
};
|