@st1ggy/linter-config 1.0.55 → 1.0.57
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/bun.lockb +0 -0
- package/index.js +1 -0
- package/package.json +3 -3
- package/src/eslint/eslint.config.common.js +2 -1
- package/src/eslint/eslint.config.next.js +16 -0
- package/src/eslint/eslint.config.react.js +1 -1
- package/src/eslint/eslint.config.typescript.js +1 -1
- package/src/eslint/rules/rules.react.js +1 -1
package/bun.lockb
CHANGED
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as eslintCommon } from './src/eslint/eslint.config.common.js'
|
|
2
2
|
export { default as eslintTypescript } from './src/eslint/eslint.config.typescript.js'
|
|
3
3
|
export { default as eslintReact } from './src/eslint/eslint.config.react.js'
|
|
4
|
+
export { default as eslintNext } from './src/eslint/eslint.config.next.js'
|
|
4
5
|
|
|
5
6
|
export { default as prettierCommon } from './src/prettier/prettier.config.common.js'
|
|
6
7
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@st1ggy/linter-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.57",
|
|
4
4
|
"description": "ESLint, Stylelint and Prettier configs for React, Vue [WIP] and Svelte [WIP]",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@eslint/js": "8.57.0",
|
|
24
24
|
"eslint": "8.57.0",
|
|
25
|
-
"eslint-config-next": "
|
|
25
|
+
"eslint-config-next": "1",
|
|
26
26
|
"eslint-config-prettier": "9.1.0",
|
|
27
27
|
"eslint-import-resolver-typescript": "3.6.1",
|
|
28
28
|
"eslint-plugin-import": "2.29.1",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"gently-copy": "3.2.0",
|
|
35
35
|
"prettier": "3.2.5",
|
|
36
36
|
"stylelint": "16.5.0",
|
|
37
|
-
"stylelint-config-recommended": "
|
|
37
|
+
"stylelint-config-recommended": "14.0.0",
|
|
38
38
|
"stylelint-config-sass-guidelines": "11.1.0",
|
|
39
39
|
"stylelint-config-tailwindcss": "0.0.7",
|
|
40
40
|
"typescript": "5.4.5",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import commonRules from './rules/rules.common.js'
|
|
2
|
+
import importRules from './rules/rules.import.js'
|
|
2
3
|
import prettierRules from './rules/rules.prettier.js'
|
|
3
4
|
import sonarjsRules from './rules/rules.sonarjs.js'
|
|
4
5
|
import unicornRules from './rules/rules.unicorn.js'
|
|
5
6
|
|
|
6
|
-
export default [...prettierRules, ...commonRules, ...unicornRules, ...sonarjsRules]
|
|
7
|
+
export default [...prettierRules, ...commonRules, ...importRules, ...unicornRules, ...sonarjsRules]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import nextPlugin from '@next/eslint-plugin-next'
|
|
2
|
+
|
|
3
|
+
import react from './eslint.config.react.js'
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
...react,
|
|
7
|
+
{
|
|
8
|
+
plugins: {
|
|
9
|
+
'@next/next': nextPlugin,
|
|
10
|
+
},
|
|
11
|
+
rules: {
|
|
12
|
+
...nextPlugin.configs.recommended.rules,
|
|
13
|
+
...nextPlugin.configs['core-web-vitals'].rules,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import reactRecommended from 'eslint-plugin-react/configs/recommended.js'
|
|
2
1
|
import reactJsxRuntime from 'eslint-plugin-react/configs/jsx-runtime.js'
|
|
2
|
+
import reactRecommended from 'eslint-plugin-react/configs/recommended.js'
|
|
3
3
|
import reactHooksPlugin from 'eslint-plugin-react-hooks'
|
|
4
4
|
|
|
5
5
|
export default [
|