@st1ggy/linter-config 1.0.26 → 1.0.28
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/dist/eslint.config.js +3 -0
- package/dist/prettier.config.js +3 -0
- package/dist/stylelint.config.js +0 -0
- package/eslint.config.js +11 -0
- package/index.js +4 -4
- package/package.json +7 -7
- package/prettier.config.js +5 -0
- package/{dist → src}/eslint/eslint.config.typescript.js +8 -2
- package/src/stylelint/stylelint.config.common.js +0 -0
- /package/{dist → src}/eslint/eslint.config.common.js +0 -0
- /package/{dist → src}/eslint/eslint.config.react.js +0 -0
- /package/{dist → src}/prettier/prettier.config.common.js +0 -0
|
File without changes
|
package/eslint.config.js
ADDED
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import eslintCommon from './
|
|
2
|
-
import eslintReact from './
|
|
3
|
-
import eslintTypescript from './
|
|
4
|
-
import prettierCommon from './
|
|
1
|
+
import eslintCommon from './src/eslint/eslint.config.common.js'
|
|
2
|
+
import eslintReact from './src/eslint/eslint.config.react.js'
|
|
3
|
+
import eslintTypescript from './src/eslint/eslint.config.typescript.js'
|
|
4
|
+
import prettierCommon from './src/prettier/prettier.config.common.js'
|
|
5
5
|
|
|
6
6
|
export { eslintCommon, prettierCommon, eslintReact, eslintTypescript }
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@st1ggy/linter-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"description": "ESLint, Stylelint and Prettier configs for React, Vue [WIP] and Svelte [WIP]",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"postinstall": "ncp node_modules/your-lib/dist/ ./"
|
|
9
10
|
},
|
|
10
11
|
"repository": {
|
|
11
12
|
"type": "git",
|
|
@@ -22,21 +23,20 @@
|
|
|
22
23
|
"url": "https://github.com/St1ggy/linter-config/issues"
|
|
23
24
|
},
|
|
24
25
|
"homepage": "https://github.com/St1ggy/linter-config#readme",
|
|
25
|
-
"files": [
|
|
26
|
-
"dist"
|
|
27
|
-
],
|
|
28
26
|
"peerDependencies": {
|
|
29
27
|
"@eslint/js": "8.57.0",
|
|
30
|
-
"eslint": "
|
|
28
|
+
"eslint": "8.57.0",
|
|
31
29
|
"eslint-config-next": "14.2.3",
|
|
32
30
|
"eslint-config-prettier": "9.1.0",
|
|
31
|
+
"eslint-import-resolver-typescript": "3.6.1",
|
|
33
32
|
"eslint-plugin-import": "2.29.1",
|
|
34
33
|
"eslint-plugin-prettier": "5.1.3",
|
|
35
34
|
"eslint-plugin-react": "7.34.1",
|
|
36
35
|
"eslint-plugin-react-hooks": "5.1.0-canary-fd0da3eef-20240404",
|
|
37
36
|
"prettier": "3.2.5",
|
|
38
37
|
"typescript": "5.4.5",
|
|
39
|
-
"typescript-eslint": "7.8.0"
|
|
38
|
+
"typescript-eslint": "7.8.0",
|
|
39
|
+
"ncp": "2.0.0"
|
|
40
40
|
},
|
|
41
41
|
"type": "module"
|
|
42
42
|
}
|
|
@@ -2,10 +2,16 @@ import tseslint from 'typescript-eslint'
|
|
|
2
2
|
|
|
3
3
|
import common from './eslint.config.common.js'
|
|
4
4
|
|
|
5
|
-
export default tseslint.config(...tseslint.configs.strict, ...tseslint.configs.stylistic, ...common, {
|
|
5
|
+
// export default tseslint.config(...tseslint.configs.strict, ...tseslint.configs.stylistic, ...common, {
|
|
6
|
+
export default tseslint.config(...tseslint.configs.recommended, ...common, {
|
|
6
7
|
languageOptions: {
|
|
7
8
|
parserOptions: {
|
|
8
|
-
project: ['tsconfig.json'
|
|
9
|
+
project: ['tsconfig.json'],
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
settings: {
|
|
13
|
+
'import/resolver': {
|
|
14
|
+
typescript: {}, // this loads <rootdir>/tsconfig.json to eslint
|
|
9
15
|
},
|
|
10
16
|
},
|
|
11
17
|
rules: {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|