@st1ggy/linter-config 1.0.72 → 1.0.74
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/package.json +4 -2
- package/src/eslint/configs/config.angular.js +17 -0
- package/src/eslint/eslint.config.angular.js +4 -0
- package/src/eslint/eslint.config.common.js +5 -5
- package/src/eslint/eslint.config.react.js +1 -1
- package/src/eslint/eslint.config.typescript.js +1 -1
- /package/src/eslint/{rules/rules.common.js → configs/config.common.js} +0 -0
- /package/src/eslint/{rules/rules.import.js → configs/config.import.js} +0 -0
- /package/src/eslint/{rules/rules.next.js → configs/config.next.js} +0 -0
- /package/src/eslint/{rules/rules.prettier.js → configs/config.prettier.js} +0 -0
- /package/src/eslint/{rules/rules.react.js → configs/config.react.js} +0 -0
- /package/src/eslint/{rules/rules.sonarjs.js → configs/config.sonarjs.js} +0 -0
- /package/src/eslint/{rules/rules.typescript.js → configs/config.typescript.js} +0 -0
- /package/src/eslint/{rules/rules.unicorn.js → configs/config.unicorn.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@st1ggy/linter-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.74",
|
|
4
4
|
"description": "ESLint, Stylelint and Prettier configs for React, Vue [WIP] and Svelte [WIP]",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"homepage": "https://github.com/St1ggy/linter-config#readme",
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@eslint/js": "^8.57.0",
|
|
24
|
+
"angular-eslint": "^18.4.0",
|
|
24
25
|
"eslint": "^8.57.0",
|
|
25
26
|
"eslint-config-next": "^14.1.4",
|
|
26
27
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -42,7 +43,8 @@
|
|
|
42
43
|
},
|
|
43
44
|
"type": "module",
|
|
44
45
|
"exports": {
|
|
45
|
-
".": "./index.js",
|
|
46
|
+
".": "./src/index.js",
|
|
47
|
+
"./eslint-angular": "./src/eslint/eslint.config.angular.js",
|
|
46
48
|
"./eslint-next": "./src/eslint/eslint.config.next.js",
|
|
47
49
|
"./eslint-react": "./src/eslint/eslint.config.react.js",
|
|
48
50
|
"./eslint-typescript": "./src/eslint/eslint.config.typescript.js",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import angular from 'angular-eslint'
|
|
2
|
+
import tseslint from 'typescript-eslint'
|
|
3
|
+
|
|
4
|
+
export const angularConfig = tseslint.config(
|
|
5
|
+
{
|
|
6
|
+
files: ['**/*.ts'],
|
|
7
|
+
extends: [...angular.configs.tsAll],
|
|
8
|
+
processor: angular.processInlineTemplates,
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
files: ['**/*.html'],
|
|
12
|
+
extends: [...angular.configs.templateAll],
|
|
13
|
+
rules: {
|
|
14
|
+
'@angular-eslint/template/i18n': 'off',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import commonConfig from './
|
|
2
|
-
import importConfig from './
|
|
3
|
-
import prettierConfig from './
|
|
4
|
-
import sonarjsConfig from './
|
|
5
|
-
import unicornConfig from './
|
|
1
|
+
import commonConfig from './configs/config.common.js'
|
|
2
|
+
import importConfig from './configs/config.import.js'
|
|
3
|
+
import prettierConfig from './configs/config.prettier.js'
|
|
4
|
+
import sonarjsConfig from './configs/config.sonarjs.js'
|
|
5
|
+
import unicornConfig from './configs/config.unicorn.js'
|
|
6
6
|
|
|
7
7
|
export default [...prettierConfig, ...commonConfig, ...importConfig, ...unicornConfig, ...sonarjsConfig]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|