@mikey-pro/eslint-config 8.0.9 → 8.0.11
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.js +0 -2
- package/overrides.js +4 -1
- package/package.json +1 -2
- package/rules.js +1 -2
package/index.js
CHANGED
|
@@ -3,7 +3,6 @@ import cypressJson from '@cypress/eslint-plugin-json';
|
|
|
3
3
|
import eslintJs from '@eslint/js';
|
|
4
4
|
import compatPlugin from 'eslint-plugin-compat';
|
|
5
5
|
import cssModules from 'eslint-plugin-css-modules';
|
|
6
|
-
import disableAutofix from 'eslint-plugin-disable-autofix';
|
|
7
6
|
import importPlugin from 'eslint-plugin-import';
|
|
8
7
|
import onlyWarn from 'eslint-plugin-only-warn';
|
|
9
8
|
import prettier from 'eslint-plugin-prettier';
|
|
@@ -73,7 +72,6 @@ const config = [
|
|
|
73
72
|
prettier,
|
|
74
73
|
unicorn,
|
|
75
74
|
'css-modules': cssModules,
|
|
76
|
-
'disable-autofix': disableAutofix,
|
|
77
75
|
'only-warn': onlyWarn,
|
|
78
76
|
'@cypress/json': cypressJson,
|
|
79
77
|
import: importPlugin,
|
package/overrides.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
+
import { fileURLToPath } from 'node:url';
|
|
2
3
|
import typescriptParser from '@typescript-eslint/parser';
|
|
3
4
|
import typeScriptPlugin from '@typescript-eslint/eslint-plugin';
|
|
4
5
|
import importPlugin from 'eslint-plugin-import';
|
|
5
6
|
import markdownPlugin from 'eslint-plugin-markdownlint';
|
|
6
7
|
|
|
8
|
+
const currentDir = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
|
|
7
10
|
const ts = {
|
|
8
11
|
files: ['*.ts', '*.tsx'],
|
|
9
12
|
languageOptions: {
|
|
@@ -16,7 +19,7 @@ const ts = {
|
|
|
16
19
|
extraFileExtensions: ['.vue', '.svelte'],
|
|
17
20
|
sourceType: 'module',
|
|
18
21
|
project: 'tsconfig.json',
|
|
19
|
-
tsconfigRootDir: path.join(
|
|
22
|
+
tsconfigRootDir: path.join(currentDir, '../../..'),
|
|
20
23
|
},
|
|
21
24
|
},
|
|
22
25
|
plugins: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.11",
|
|
4
4
|
"description": "Mikey Pro ESLint configuration",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"eslint-plugin-compat": "^6.0",
|
|
21
21
|
"eslint-plugin-css-modules": "^2.12",
|
|
22
22
|
"eslint-plugin-cypress": "^4.1.0",
|
|
23
|
-
"eslint-plugin-disable-autofix": "^5.0.1",
|
|
24
23
|
"eslint-plugin-import": "^2.31.0",
|
|
25
24
|
"eslint-plugin-jest": "^28.11.0",
|
|
26
25
|
"eslint-plugin-jsonc": "^2.19.1",
|
package/rules.js
CHANGED
|
@@ -110,8 +110,7 @@ export const baseRules = {
|
|
|
110
110
|
'prefer-rest-params': 'warn',
|
|
111
111
|
'prefer-spread': 'warn',
|
|
112
112
|
'prefer-template': 'warn',
|
|
113
|
-
'prefer-const': '
|
|
114
|
-
'disable-autofix/prefer-const': 'warn',
|
|
113
|
+
'prefer-const': 'warn',
|
|
115
114
|
'quote-props': ['warn', 'as-needed'],
|
|
116
115
|
quotes: [
|
|
117
116
|
'off',
|