@newhighsco/eslint-config 3.0.0 → 3.1.0
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 +19 -1
- package/package.json +11 -9
package/index.js
CHANGED
@@ -9,12 +9,30 @@ module.exports = {
|
|
9
9
|
extends: ['standard', 'plugin:prettier/recommended'],
|
10
10
|
plugins: ['json-format'],
|
11
11
|
settings: {
|
12
|
+
'json/json-with-comments-files': [],
|
12
13
|
'json/sort-package-json': false
|
13
14
|
},
|
14
15
|
overrides: [
|
16
|
+
// Typescript
|
17
|
+
{
|
18
|
+
files: ['*.ts?(x)'],
|
19
|
+
parserOptions: {
|
20
|
+
project: 'tsconfig.json'
|
21
|
+
},
|
22
|
+
extends: ['standard-with-typescript', 'plugin:prettier/recommended'],
|
23
|
+
plugins: ['tsc'],
|
24
|
+
rules: {
|
25
|
+
'tsc/config': [
|
26
|
+
'error',
|
27
|
+
{
|
28
|
+
configFile: 'tsconfig.json'
|
29
|
+
}
|
30
|
+
]
|
31
|
+
}
|
32
|
+
},
|
15
33
|
// React
|
16
34
|
{
|
17
|
-
files: ['*.
|
35
|
+
files: ['*.{js,ts,md}x'],
|
18
36
|
env: {
|
19
37
|
browser: true
|
20
38
|
},
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@newhighsco/eslint-config",
|
3
3
|
"description": "New High Score shareable config for ESLint",
|
4
|
-
"version": "3.
|
4
|
+
"version": "3.1.0",
|
5
5
|
"author": "New High Score <hello@newhighsco.re>",
|
6
6
|
"license": "ISC",
|
7
7
|
"repository": {
|
@@ -14,24 +14,24 @@
|
|
14
14
|
},
|
15
15
|
"main": "index.js",
|
16
16
|
"scripts": {
|
17
|
+
"prepare": "husky install",
|
17
18
|
"test": "yarn lint",
|
18
19
|
"lint": "npm-run-all --parallel lint:*",
|
19
|
-
"lint:js": "eslint --ignore-path .gitignore --ext .js,.json .",
|
20
|
-
"lint:jsx": "yarn lint:js --ext .js,.json,.jsx,.mdx",
|
20
|
+
"lint:js": "eslint --ignore-path .gitignore --ext .js,.json,.jsx,.mdx,.ts,.tsx .",
|
21
21
|
"format": "npm-run-all --parallel format:*",
|
22
|
-
"format:js": "yarn lint:js --fix"
|
23
|
-
"format:jsx": "yarn lint:jsx --fix"
|
22
|
+
"format:js": "yarn lint:js --fix"
|
24
23
|
},
|
25
|
-
"files": [
|
26
|
-
"react.js"
|
27
|
-
],
|
24
|
+
"files": [],
|
28
25
|
"dependencies": {
|
29
26
|
"@babel/core": "7.17.2",
|
30
27
|
"@babel/eslint-parser": "7.17.0",
|
28
|
+
"@typescript-eslint/eslint-plugin": "5.11.0",
|
29
|
+
"@typescript-eslint/parser": "5.11.0",
|
31
30
|
"eslint-config-prettier": "8.3.0",
|
32
31
|
"eslint-config-standard": "16.0.3",
|
33
32
|
"eslint-config-standard-jsx": "10.0.0",
|
34
33
|
"eslint-config-standard-react": "11.0.1",
|
34
|
+
"eslint-config-standard-with-typescript": "21.0.1",
|
35
35
|
"eslint-plugin-import": "2.25.4",
|
36
36
|
"eslint-plugin-json-format": "2.0.1",
|
37
37
|
"eslint-plugin-jsx-a11y": "6.5.1",
|
@@ -40,7 +40,8 @@
|
|
40
40
|
"eslint-plugin-prettier": "4.0.0",
|
41
41
|
"eslint-plugin-promise": "6.0.0",
|
42
42
|
"eslint-plugin-react": "7.28.0",
|
43
|
-
"eslint-plugin-standard": "4.1.0"
|
43
|
+
"eslint-plugin-standard": "4.1.0",
|
44
|
+
"eslint-plugin-tsc": "2.0.0"
|
44
45
|
},
|
45
46
|
"devDependencies": {
|
46
47
|
"@commitlint/cli": "16.1.0",
|
@@ -48,6 +49,7 @@
|
|
48
49
|
"@newhighsco/editor-config": "1.1.2",
|
49
50
|
"@newhighsco/prettier-config": "2.0.16",
|
50
51
|
"@newhighsco/release-config": "1.1.5",
|
52
|
+
"@types/react": "17.0.39",
|
51
53
|
"eslint": "8.8.0",
|
52
54
|
"husky": "7.0.4",
|
53
55
|
"npm-run-all": "4.1.5",
|