@mkaradeniz/eslint-config 4.0.2 → 4.0.4
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/base.mjs +30 -5
- package/eslint.config.mjs +0 -1
- package/package.json +8 -4
- package/rules/baseRules.mjs +0 -2
- package/rules/turboRules.mjs +5 -0
- package/turbo.mjs +17 -0
package/base.mjs
CHANGED
|
@@ -6,7 +6,6 @@ import eslintPluginImport from 'eslint-plugin-import';
|
|
|
6
6
|
import eslintPluginOnlyWarn from 'eslint-plugin-only-warn';
|
|
7
7
|
import eslintPluginPreferArrowFunctions from 'eslint-plugin-prefer-arrow-functions';
|
|
8
8
|
import eslintPluginReactCompiler from 'eslint-plugin-react-compiler';
|
|
9
|
-
import eslintPluginTurbo from 'eslint-plugin-turbo';
|
|
10
9
|
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
|
|
11
10
|
import globals from 'globals';
|
|
12
11
|
import tseslint from 'typescript-eslint';
|
|
@@ -92,10 +91,6 @@ export const baseConfig = [
|
|
|
92
91
|
* https://github.com/react-compiler/eslint-plugin-react-compiler
|
|
93
92
|
*/
|
|
94
93
|
'react-compiler': eslintPluginReactCompiler,
|
|
95
|
-
/**
|
|
96
|
-
* https://turbo.build/repo/docs/guides/tools/eslint
|
|
97
|
-
*/
|
|
98
|
-
turbo: eslintPluginTurbo,
|
|
99
94
|
/**
|
|
100
95
|
* https://github.com/sindresorhus/eslint-plugin-unicorn
|
|
101
96
|
*/
|
|
@@ -107,6 +102,36 @@ export const baseConfig = [
|
|
|
107
102
|
},
|
|
108
103
|
},
|
|
109
104
|
},
|
|
105
|
+
{
|
|
106
|
+
files: [
|
|
107
|
+
'*.setup.mjs',
|
|
108
|
+
'*.setup.mts',
|
|
109
|
+
'*.setup.ts',
|
|
110
|
+
'**/*.stories.ts',
|
|
111
|
+
'**/*.stories.tsx',
|
|
112
|
+
'*/app/**/error.tsx',
|
|
113
|
+
'*/app/**/global-error.tsx',
|
|
114
|
+
'*/app/**/layout.tsx',
|
|
115
|
+
'*/app/**/loading.tsx',
|
|
116
|
+
'*/app/**/not-found.tsx',
|
|
117
|
+
'*/app/**/opengraph-image.tsx',
|
|
118
|
+
'*/app/**/page.tsx',
|
|
119
|
+
'*/app/**/robots.ts',
|
|
120
|
+
'*/app/**/route.tsx',
|
|
121
|
+
'*/app/**/sitemap.ts',
|
|
122
|
+
'*/app/**/template.tsx',
|
|
123
|
+
'*/app/**/twitter-image.tsx',
|
|
124
|
+
'*Config.mjs',
|
|
125
|
+
'*Config.ts',
|
|
126
|
+
'*config.js',
|
|
127
|
+
'*config.mjs',
|
|
128
|
+
'*config.mts',
|
|
129
|
+
'*config.ts',
|
|
130
|
+
],
|
|
131
|
+
rules: {
|
|
132
|
+
'import/no-default-export': 'off',
|
|
133
|
+
},
|
|
134
|
+
},
|
|
110
135
|
// Ignore patterns
|
|
111
136
|
...gitignoreConfig,
|
|
112
137
|
{ ignores: ['.next/**/*', 'dist/**/*', 'node_modules/**/*', 'out/**/*'] },
|
package/eslint.config.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mkaradeniz/eslint-config",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"base.mjs",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"next.mjs",
|
|
9
9
|
"react.mjs",
|
|
10
10
|
"react19.mjs",
|
|
11
|
+
"turbo.mjs",
|
|
11
12
|
"eslint.config.mjs",
|
|
12
13
|
"rules/"
|
|
13
14
|
],
|
|
@@ -15,11 +16,12 @@
|
|
|
15
16
|
"clean": "rimraf node_modules",
|
|
16
17
|
"format": "prettier --log-level warn --write .",
|
|
17
18
|
"lint": "eslint --max-warnings 0 --no-warn-ignored .",
|
|
18
|
-
"lint:fix": "eslint --fix --max-warnings 0 --no-warn-ignored ."
|
|
19
|
+
"lint:fix": "eslint --fix --max-warnings 0 --no-warn-ignored .",
|
|
20
|
+
"prepare": "husky"
|
|
19
21
|
},
|
|
20
22
|
"lint-staged": {
|
|
21
|
-
"**/*.{json,
|
|
22
|
-
"**/*.
|
|
23
|
+
"**/*.{json,mjs}": "prettier --log-level warn --write",
|
|
24
|
+
"**/*.mjs": "eslint --max-warnings 0 --no-warn-ignored"
|
|
23
25
|
},
|
|
24
26
|
"prettier": "@mkaradeniz/prettier-config",
|
|
25
27
|
"dependencies": {
|
|
@@ -44,6 +46,8 @@
|
|
|
44
46
|
},
|
|
45
47
|
"devDependencies": {
|
|
46
48
|
"@mkaradeniz/prettier-config": "^4.0.0",
|
|
49
|
+
"husky": "^9.1.7",
|
|
50
|
+
"lint-staged": "^16.1.6",
|
|
47
51
|
"prettier": "^3.6.2",
|
|
48
52
|
"rimraf": "^6.0.1",
|
|
49
53
|
"typescript": "^5.9.2"
|
package/rules/baseRules.mjs
CHANGED
package/turbo.mjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import eslintPluginTurbo from 'eslint-plugin-turbo';
|
|
2
|
+
|
|
3
|
+
import { turboRules } from './rules/turboRules.mjs';
|
|
4
|
+
|
|
5
|
+
export const turboConfig = [
|
|
6
|
+
{
|
|
7
|
+
plugins: {
|
|
8
|
+
/**
|
|
9
|
+
* https://turbo.build/repo/docs/guides/tools/eslint
|
|
10
|
+
*/
|
|
11
|
+
turbo: eslintPluginTurbo,
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
...turboRules,
|
|
16
|
+
},
|
|
17
|
+
];
|