@tpluscode/eslint-config 0.3.4 → 0.4.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.
@@ -9,6 +9,6 @@ jobs:
9
9
  - uses: actions/checkout@v2
10
10
  - uses: actions/setup-node@v2.1.2
11
11
  with:
12
- node-version: 13
12
+ node-version: 14
13
13
  - run: yarn
14
14
  - run: yarn test
@@ -19,7 +19,7 @@ jobs:
19
19
  - name: Setup Node.js
20
20
  uses: actions/setup-node@v2.1.2
21
21
  with:
22
- node-version: 13
22
+ node-version: 14
23
23
 
24
24
  - name: Install Dependencies
25
25
  run: yarn
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - eb4771f: disable `no-undef` in TS files as suggested by `typescript-eslint`
8
+
9
+ ## 0.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 92ac89c: Added `eslint-plugin-require-extensions`
14
+
3
15
  ## 0.3.4
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -14,6 +14,7 @@ npm i --save-dev \
14
14
  eslint-plugin-node \
15
15
  eslint-plugin-promise \
16
16
  eslint-plugin-n \
17
+ eslint-plugin-require-extensions \
17
18
  standard
18
19
  ```
19
20
 
@@ -21,6 +22,7 @@ If you write code in TypeScript, add:
21
22
 
22
23
  ```
23
24
  npm i --save-dev \
25
+ typescript \
24
26
  @typescript-eslint/eslint-plugin \
25
27
  @typescript-eslint/parser \
26
28
  eslint-import-resolver-typescript
package/index.js CHANGED
@@ -47,10 +47,11 @@ module.exports = {
47
47
  }
48
48
  },
49
49
  {
50
- files: '*.ts',
50
+ files: ['*.ts', '*.mts', '*.cts', '*.tsx'],
51
51
  rules: {
52
52
  'no-useless-constructor': 'off',
53
- '@typescript-eslint/no-useless-constructor': 'error'
53
+ '@typescript-eslint/no-useless-constructor': 'error',
54
+ 'no-undef': 'off'
54
55
  }
55
56
  }
56
57
  ]
package/js.js CHANGED
@@ -2,10 +2,12 @@ module.exports = {
2
2
  extends: [
3
3
  'standard',
4
4
  'plugin:import/errors',
5
- 'plugin:import/warnings'
5
+ 'plugin:import/warnings',
6
+ 'plugin:require-extensions/recommended'
6
7
  ],
7
8
  plugins: [
8
- 'import'
9
+ 'import',
10
+ 'require-extensions'
9
11
  ],
10
12
  rules: {
11
13
  indent: ['error', 2],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpluscode/eslint-config",
3
- "version": "0.3.4",
3
+ "version": "0.4.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -10,17 +10,26 @@
10
10
  },
11
11
  "peerDependencies": {
12
12
  "eslint": ">=6",
13
- "eslint-import-resolver-typescript": ">=2",
13
+ "eslint-config-standard": ">=11",
14
+ "eslint-plugin-import": ">=2",
15
+ "eslint-plugin-node": ">=11",
16
+ "eslint-plugin-promise": ">=6",
17
+ "eslint-plugin-n": ">=15",
18
+ "eslint-plugin-require-extensions": ">=0.1.2",
19
+ "standard": ">=11"
20
+ },
21
+ "optionalDependencies": {
14
22
  "@typescript-eslint/eslint-plugin": ">=2",
15
23
  "@typescript-eslint/parser": ">=2",
16
- "standard": ">=11"
24
+ "eslint-import-resolver-typescript": ">=2"
17
25
  },
18
26
  "devDependencies": {
19
- "@changesets/cli": "^2.15.0",
27
+ "@changesets/cli": "^2.26.0",
20
28
  "eslint": "^7.23.0",
21
29
  "eslint-config-standard": "^16.0.2",
22
30
  "eslint-plugin-import": "^2.22.1",
23
31
  "eslint-plugin-node": "^11.1.0",
32
+ "eslint-plugin-promise": "^6.1.1",
24
33
  "standard": "^16.0.3",
25
34
  "lint-staged": "^10.5.4",
26
35
  "husky": "^6.0.0"