@viclafouch/eslint-config-viclafouch 4.17.1-beta.1 → 4.17.1-beta.3
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/index.mjs +6 -0
- package/package.json +1 -1
- package/prettier.mjs +1 -1
- package/rules/best-practices.mjs +1 -0
- package/rules/errors.mjs +1 -0
- package/rules/es6.mjs +2 -1
- package/rules/imports.mjs +1 -0
- package/rules/node.mjs +1 -0
- package/rules/react-hooks.mjs +1 -0
- package/rules/react.mjs +1 -0
- package/rules/style.mjs +1 -0
- package/rules/typescript.mjs +1 -0
- package/rules/variables.mjs +1 -0
package/index.mjs
CHANGED
|
@@ -10,6 +10,12 @@ import variablesConfig from './rules/variables.mjs'
|
|
|
10
10
|
* @type {import("eslint").Linter.Config}
|
|
11
11
|
*/
|
|
12
12
|
export default [
|
|
13
|
+
{
|
|
14
|
+
files: ['**/*.{js,mjs,cjs,jsx,ts,tsx}'],
|
|
15
|
+
linterOptions: {
|
|
16
|
+
reportUnusedDisableDirectives: "error"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
13
19
|
bestPracticesConfig,
|
|
14
20
|
nodeConfig,
|
|
15
21
|
errorConfig,
|
package/package.json
CHANGED
package/prettier.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
|
|
|
4
4
|
* @type {import("eslint").Linter.Config}
|
|
5
5
|
*/
|
|
6
6
|
export default [
|
|
7
|
+
eslintPluginPrettierRecommended,
|
|
7
8
|
{
|
|
8
|
-
...eslintPluginPrettierRecommended,
|
|
9
9
|
rules: {
|
|
10
10
|
'prettier/prettier': [
|
|
11
11
|
'error',
|
package/rules/best-practices.mjs
CHANGED
package/rules/errors.mjs
CHANGED
package/rules/es6.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import pluginPromise from 'eslint-plugin-promise'
|
|
|
4
4
|
* @type {import("eslint").Linter.Config}
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
7
|
+
name: 'es6',
|
|
7
8
|
files: ['**/*.{js,mjs,cjs,jsx}'],
|
|
8
9
|
plugins: {
|
|
9
10
|
promise: pluginPromise
|
|
@@ -14,7 +15,7 @@ export default {
|
|
|
14
15
|
jsx: true
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
|
-
ecmaVersion:
|
|
18
|
+
ecmaVersion: 'latest',
|
|
18
19
|
sourceType: 'module'
|
|
19
20
|
},
|
|
20
21
|
rules: {
|
package/rules/imports.mjs
CHANGED
package/rules/node.mjs
CHANGED
package/rules/react-hooks.mjs
CHANGED
package/rules/react.mjs
CHANGED
package/rules/style.mjs
CHANGED
package/rules/typescript.mjs
CHANGED