@limulus/eslint-config 3.2.0 → 3.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 +1 -25
- package/index.js +19 -8
- package/package.json +16 -12
- package/prettier.js +0 -5
package/README.md
CHANGED
|
@@ -1,29 +1,5 @@
|
|
|
1
1
|
# @limulus/eslint-config
|
|
2
2
|
|
|
3
|
-
My ESLint configuration, based on [
|
|
3
|
+
My ESLint configuration, based on [JavaScript Standard Style](https://standardjs.com) with some sensible modifications.
|
|
4
4
|
|
|
5
5
|
Feel free to use for your own projects, but it is entirely subject to my own whims.
|
|
6
|
-
|
|
7
|
-
## Set Up
|
|
8
|
-
|
|
9
|
-
Add a `.eslintrc.js`:
|
|
10
|
-
|
|
11
|
-
```js
|
|
12
|
-
module.exports = {
|
|
13
|
-
"extends": ["@limulus"],
|
|
14
|
-
"overrides": [
|
|
15
|
-
{
|
|
16
|
-
"files": ["*.ts", "*.tsx", "*.d.ts"],
|
|
17
|
-
"parserOptions": { "project": "./tsconfig.json" }
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Add a `prettier.config.js`:
|
|
24
|
-
|
|
25
|
-
```js
|
|
26
|
-
module.exports = {
|
|
27
|
-
...require('@limulus/eslint-config/prettier'),
|
|
28
|
-
}
|
|
29
|
-
```
|
package/index.js
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
node: true,
|
|
5
|
-
},
|
|
6
2
|
extends: [
|
|
7
|
-
'
|
|
8
|
-
'
|
|
3
|
+
'standard-with-typescript',
|
|
4
|
+
'plugin:@typescript-eslint/recommended'
|
|
5
|
+
],
|
|
6
|
+
ignorePatterns: [ 'node_modules/', 'dist/' ],
|
|
7
|
+
env: { 'jest': true },
|
|
8
|
+
parser: '@typescript-eslint/parser',
|
|
9
|
+
plugins: [
|
|
10
|
+
'eslint-plugin-standard',
|
|
11
|
+
'@typescript-eslint/eslint-plugin',
|
|
9
12
|
],
|
|
10
13
|
rules: {
|
|
11
|
-
'
|
|
12
|
-
|
|
14
|
+
'arrow-parens': [ 'error', 'always' ],
|
|
15
|
+
'comma-dangle': [ 'error', {
|
|
16
|
+
arrays: 'always-multiline',
|
|
17
|
+
objects: 'always-multiline',
|
|
18
|
+
imports: 'always-multiline',
|
|
19
|
+
exports: 'always-multiline',
|
|
20
|
+
functions: 'never'
|
|
21
|
+
}],
|
|
22
|
+
"@typescript-eslint/no-implicit-any-catch": ["error"],
|
|
23
|
+
}
|
|
13
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limulus/eslint-config",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "A shared ESLint configuration",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": "https://github.com/limulus/eslint-config.git",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
},
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"files": [
|
|
14
|
-
"index.js"
|
|
15
|
-
"prettier.js"
|
|
14
|
+
"index.js"
|
|
16
15
|
],
|
|
17
16
|
"scripts": {
|
|
17
|
+
"postversion": "git push && git push --tags",
|
|
18
18
|
"test": "echo 'No tests, just pass.'",
|
|
19
19
|
"prepare": "is-ci || husky install"
|
|
20
20
|
},
|
|
@@ -22,21 +22,25 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"eslint-
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^4.0.1",
|
|
26
|
+
"@typescript-eslint/parser": "^4.0.1",
|
|
27
|
+
"eslint-config-standard-with-typescript": "^19.0.1",
|
|
28
|
+
"eslint-plugin-import": "^2.22.0",
|
|
29
|
+
"eslint-plugin-node": "^11.1.0",
|
|
30
|
+
"eslint-plugin-promise": "^4.2.1",
|
|
31
|
+
"eslint-plugin-standard": "^4.0.1"
|
|
26
32
|
},
|
|
27
33
|
"peerDependencies": {
|
|
28
|
-
"eslint": ">=
|
|
29
|
-
"prettier": ">=2",
|
|
34
|
+
"eslint": ">=7",
|
|
30
35
|
"typescript": ">=4"
|
|
31
36
|
},
|
|
32
37
|
"devDependencies": {
|
|
33
|
-
"@commitlint/cli": "^
|
|
34
|
-
"@commitlint/config-conventional": "^
|
|
35
|
-
"eslint": "^8.
|
|
38
|
+
"@commitlint/cli": "^11.0.0",
|
|
39
|
+
"@commitlint/config-conventional": "^11.0.0",
|
|
40
|
+
"eslint": "^7.8.1",
|
|
36
41
|
"husky": "^7.0.0",
|
|
37
42
|
"is-ci": "^3.0.1",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"typescript": "^4.6.3"
|
|
43
|
+
"semantic-release": "^17.2.1",
|
|
44
|
+
"typescript": "^4.0.2"
|
|
41
45
|
}
|
|
42
46
|
}
|