eslint-config-dolmios 1.0.2 → 1.0.3
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 +1 -21
- package/package.json +12 -19
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,12 +1,5 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'next/core-web-vitals', 'prettier'
|
|
3
|
-
parser: '@typescript-eslint/parser',
|
|
4
|
-
plugins: ['jsx-a11y', 'sort-keys-fix', '@typescript-eslint'],
|
|
5
|
-
parserOptions: {
|
|
6
|
-
ecmaFeatures: {
|
|
7
|
-
jsx: true,
|
|
8
|
-
},
|
|
9
|
-
},
|
|
2
|
+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', 'next/core-web-vitals', 'prettier'],
|
|
10
3
|
rules: {
|
|
11
4
|
'@typescript-eslint/ban-ts-ignore': 'off',
|
|
12
5
|
'@typescript-eslint/explicit-function-return-type': 'error',
|
|
@@ -63,18 +56,6 @@ module.exports = {
|
|
|
63
56
|
'newlines-between': 'always',
|
|
64
57
|
},
|
|
65
58
|
],
|
|
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
59
|
'no-alert': 'error',
|
|
79
60
|
'no-array-constructor': 'error',
|
|
80
61
|
'no-console': [
|
|
@@ -142,7 +123,6 @@ module.exports = {
|
|
|
142
123
|
semi: ['error', 'always'],
|
|
143
124
|
'semi-spacing': ['error', { after: true, before: false }],
|
|
144
125
|
'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.3",
|
|
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
|
+
"@typescript-eslint/parser": "^5.19.0",
|
|
12
|
+
"eslint": "^8.13.0",
|
|
13
|
+
"eslint-config-next": "12.1.5",
|
|
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": [
|
|
@@ -26,28 +31,16 @@
|
|
|
26
31
|
"main": "index.js",
|
|
27
32
|
"peerDependencies": {
|
|
28
33
|
"eslint": ">= 8.0.0",
|
|
34
|
+
"next": ">= 12.0.0",
|
|
29
35
|
"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",
|
|
37
|
-
"@typescript-eslint/parser": "^5.19.0",
|
|
38
|
-
"eslint": "^8.13.0",
|
|
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"
|
|
36
|
+
"typescript": ">= 4.0.0"
|
|
44
37
|
},
|
|
45
38
|
"private": false,
|
|
46
39
|
"repository": {
|
|
47
40
|
"type": "git",
|
|
48
41
|
"url": "git+https://github.com/dolmios/eslint-config-dolmios.git"
|
|
49
42
|
},
|
|
50
|
-
"
|
|
51
|
-
"
|
|
43
|
+
"scripts": {
|
|
44
|
+
"test": "eslint --ext .js"
|
|
52
45
|
}
|
|
53
46
|
}
|