eslint-config-adslot 1.0.2 → 1.2.1
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 -3
- package/index.js +10 -6
- package/package.json +13 -14
package/README.md
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
# eslint-config-adslot
|
2
2
|
|
3
3
|
[](https://badge.fury.io/js/eslint-config-adslot)
|
4
|
-

|
5
5
|
|
6
6
|
ESLint configuration for Adslot
|
7
7
|
|
8
8
|
## Install
|
9
9
|
|
10
10
|
```
|
11
|
-
npm install -D eslint-config-adslot
|
11
|
+
npm install -D eslint-config-adslot eslint
|
12
12
|
```
|
13
13
|
|
14
|
-
`eslint`
|
14
|
+
`eslint` is a required peer dependencies
|
15
15
|
|
16
16
|
## Setup
|
17
17
|
|
package/index.js
CHANGED
@@ -6,19 +6,17 @@
|
|
6
6
|
const restrictedGlobals = require('confusing-browser-globals');
|
7
7
|
|
8
8
|
module.exports = {
|
9
|
-
parser: 'babel-eslint',
|
10
|
-
|
11
9
|
env: {
|
12
10
|
browser: true,
|
13
11
|
commonjs: true,
|
14
|
-
|
12
|
+
es2021: true,
|
15
13
|
jest: true,
|
16
14
|
node: true,
|
17
15
|
mocha: true,
|
18
16
|
},
|
19
17
|
|
20
18
|
parserOptions: {
|
21
|
-
ecmaVersion:
|
19
|
+
ecmaVersion: 'latest',
|
22
20
|
sourceType: 'module',
|
23
21
|
ecmaFeatures: {
|
24
22
|
jsx: true,
|
@@ -29,6 +27,11 @@ module.exports = {
|
|
29
27
|
react: {
|
30
28
|
version: 'detect',
|
31
29
|
},
|
30
|
+
'import/resolver': {
|
31
|
+
node: {
|
32
|
+
extensions: ['.ts', '.tsx', '.js', '.jsx', '.mjs'],
|
33
|
+
},
|
34
|
+
},
|
32
35
|
},
|
33
36
|
|
34
37
|
plugins: [
|
@@ -40,7 +43,7 @@ module.exports = {
|
|
40
43
|
'chai-friendly',
|
41
44
|
],
|
42
45
|
|
43
|
-
extends: ['prettier'
|
46
|
+
extends: ['prettier'],
|
44
47
|
|
45
48
|
overrides: [
|
46
49
|
{
|
@@ -58,7 +61,8 @@ module.exports = {
|
|
58
61
|
},
|
59
62
|
plugins: ['@typescript-eslint'],
|
60
63
|
|
61
|
-
extends: ['prettier'
|
64
|
+
extends: ['prettier'],
|
65
|
+
|
62
66
|
// If adding a typescript-eslint version of an existing ESLint rule,
|
63
67
|
// make sure to disable the ESLint rule here.
|
64
68
|
rules: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint-config-adslot",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.2.1",
|
4
4
|
"description": "ESLint configuration for Adslot",
|
5
5
|
"main": "index.js",
|
6
6
|
"files": [
|
@@ -12,7 +12,7 @@
|
|
12
12
|
},
|
13
13
|
"author": "Adslot",
|
14
14
|
"engines": {
|
15
|
-
"node": "
|
15
|
+
"node": "^16"
|
16
16
|
},
|
17
17
|
"keywords": [
|
18
18
|
"ESLint",
|
@@ -31,20 +31,19 @@
|
|
31
31
|
"release:patch": "npm version patch -m 'build: release patch version %s'"
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
|
-
"@typescript-eslint/eslint-plugin": "^
|
35
|
-
"@typescript-eslint/parser": "^
|
36
|
-
"confusing-browser-globals": "^1.0.
|
37
|
-
"eslint-config-prettier": "^
|
38
|
-
"eslint-plugin-chai-friendly": "^0.
|
39
|
-
"eslint-plugin-import": "^2.
|
40
|
-
"eslint-plugin-jsx-a11y": "^6.
|
41
|
-
"eslint-plugin-lodash": "^7.
|
42
|
-
"eslint-plugin-react": "^7.
|
43
|
-
"eslint-plugin-react-hooks": "^4.0
|
34
|
+
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
35
|
+
"@typescript-eslint/parser": "^5.5.0",
|
36
|
+
"confusing-browser-globals": "^1.0.10",
|
37
|
+
"eslint-config-prettier": "^8.3.0",
|
38
|
+
"eslint-plugin-chai-friendly": "^0.7.2",
|
39
|
+
"eslint-plugin-import": "^2.25.3",
|
40
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
41
|
+
"eslint-plugin-lodash": "^7.3.0",
|
42
|
+
"eslint-plugin-react": "^7.27.1",
|
43
|
+
"eslint-plugin-react-hooks": "^4.3.0"
|
44
44
|
},
|
45
45
|
"peerDependencies": {
|
46
|
-
"
|
47
|
-
"eslint": "6.x"
|
46
|
+
"eslint": "^8.3.0"
|
48
47
|
},
|
49
48
|
"devDependencies": {}
|
50
49
|
}
|