eslint-config-dolmios 1.0.2 → 1.0.5
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/README.md +3 -0
- package/index.js +4 -24
- package/package.json +12 -18
package/README.md
CHANGED
|
@@ -4,6 +4,9 @@ My personal ESLint configuration preferences.
|
|
|
4
4
|
|
|
5
5
|
### Installation
|
|
6
6
|
|
|
7
|
+
Ensure that you have `eslint` and `next` installed. Our configuration utilises the [Next.js Core Web Vitals](https://nextjs.org/docs/basic-features/eslint#core-web-vitals)
|
|
8
|
+
configuration as a baseline, alongside handling `parser`, `plugins` and `settings`.
|
|
9
|
+
|
|
7
10
|
```
|
|
8
11
|
yarn add eslint-config-dolmios
|
|
9
12
|
```
|
package/index.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
2
|
+
root: true,
|
|
3
3
|
parser: '@typescript-eslint/parser',
|
|
4
|
-
plugins: ['
|
|
5
|
-
|
|
6
|
-
ecmaFeatures: {
|
|
7
|
-
jsx: true,
|
|
8
|
-
},
|
|
9
|
-
},
|
|
4
|
+
plugins: ['@typescript-eslint'],
|
|
5
|
+
extends: ['eslint:recommended', 'plugin:import/recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
|
|
10
6
|
rules: {
|
|
11
|
-
'@typescript-eslint/ban-ts-ignore': 'off',
|
|
12
7
|
'@typescript-eslint/explicit-function-return-type': 'error',
|
|
13
|
-
'@typescript-eslint/explicit-
|
|
14
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
8
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
15
9
|
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
16
10
|
'@typescript-eslint/no-unused-vars': [
|
|
17
11
|
'error',
|
|
@@ -63,18 +57,6 @@ module.exports = {
|
|
|
63
57
|
'newlines-between': 'always',
|
|
64
58
|
},
|
|
65
59
|
],
|
|
66
|
-
'jsx-a11y/anchor-is-valid': 'off',
|
|
67
|
-
'jsx-a11y/label-has-associated-control': [
|
|
68
|
-
'error',
|
|
69
|
-
{
|
|
70
|
-
assert: 'either',
|
|
71
|
-
controlComponents: [],
|
|
72
|
-
depth: 25,
|
|
73
|
-
labelAttributes: [],
|
|
74
|
-
labelComponents: [],
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
'jsx-a11y/media-has-caption': 'off',
|
|
78
60
|
'no-alert': 'error',
|
|
79
61
|
'no-array-constructor': 'error',
|
|
80
62
|
'no-console': [
|
|
@@ -141,8 +123,6 @@ module.exports = {
|
|
|
141
123
|
],
|
|
142
124
|
semi: ['error', 'always'],
|
|
143
125
|
'semi-spacing': ['error', { after: true, before: false }],
|
|
144
|
-
'sort-keys': 'error',
|
|
145
|
-
'sort-keys-fix/sort-keys-fix': 'warn',
|
|
146
126
|
'space-before-blocks': ['error', 'always'],
|
|
147
127
|
'space-before-function-paren': [
|
|
148
128
|
'error',
|
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-dolmios",
|
|
3
3
|
"description": "My personal ESLint configuration preferences.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.5",
|
|
5
5
|
"author": "Jackson Dolman <mail@dolmios.com>",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/dolmios/eslint-config-dolmios/issues"
|
|
8
8
|
},
|
|
9
|
-
"
|
|
10
|
-
"
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@typescript-eslint/eslint-plugin": "^5.19.0",
|
|
11
|
+
"eslint-plugin-import": "^2.20.0",
|
|
12
|
+
"@typescript-eslint/parser": "^5.19.0",
|
|
13
|
+
"eslint": "^8.13.0",
|
|
14
|
+
"eslint-config-prettier": "^8.5.0",
|
|
15
|
+
"prettier": "^2.6.2"
|
|
11
16
|
},
|
|
12
17
|
"homepage": "https://github.com/dolmios/eslint-config-dolmios#readme",
|
|
13
18
|
"keywords": [
|
|
@@ -27,27 +32,16 @@
|
|
|
27
32
|
"peerDependencies": {
|
|
28
33
|
"eslint": ">= 8.0.0",
|
|
29
34
|
"prettier": ">= 2.0.0",
|
|
30
|
-
"
|
|
31
|
-
"eslint-plugin-jsx-a11y": "^6.0.0",
|
|
32
|
-
"@typescript-eslint/parser": "^5.0.0",
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "^5.0.0"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^5.19.0",
|
|
35
|
+
"typescript": ">= 4.0.0",
|
|
37
36
|
"@typescript-eslint/parser": "^5.19.0",
|
|
38
|
-
"eslint": "^
|
|
39
|
-
"eslint-config-next": "12.1.5",
|
|
40
|
-
"eslint-config-prettier": "^8.5.0",
|
|
41
|
-
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
42
|
-
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
43
|
-
"prettier": "^2.6.2"
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^5.19.0"
|
|
44
38
|
},
|
|
45
39
|
"private": false,
|
|
46
40
|
"repository": {
|
|
47
41
|
"type": "git",
|
|
48
42
|
"url": "git+https://github.com/dolmios/eslint-config-dolmios.git"
|
|
49
43
|
},
|
|
50
|
-
"
|
|
51
|
-
"
|
|
44
|
+
"scripts": {
|
|
45
|
+
"test": "eslint --ext .js"
|
|
52
46
|
}
|
|
53
47
|
}
|