@1stg/eslint-config 3.4.0 → 4.0.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#86](https://github.com/1stG/configs/pull/86) [`e5a780c`](https://github.com/1stG/configs/commit/e5a780c39c7fc49a3009dbac4bc6bfa18beb3365) Thanks [@JounQin](https://github.com/JounQin)! - feat!: bump deps, drop node 12
8
+
3
9
  ## 3.4.0
4
10
 
5
11
  ### Minor Changes
package/base.js CHANGED
@@ -8,7 +8,7 @@ module.exports = {
8
8
  'eslint:recommended',
9
9
  'plugin:eslint-comments/recommended',
10
10
  'plugin:import/recommended',
11
- 'plugin:node/recommended',
11
+ 'plugin:n/recommended',
12
12
  'plugin:promise/recommended',
13
13
  'plugin:sonarjs/recommended',
14
14
  isTsAvailable && 'plugin:sonar/recommended',
@@ -73,15 +73,15 @@ module.exports = {
73
73
  'no-process-exit': 0, // suspended by unicorn/no-process-exit
74
74
 
75
75
  // The following rules are duplicate with `eslint-plugin-import`
76
- 'node/no-extraneous-import': 0,
77
- 'node/no-extraneous-require': 0,
78
- 'node/no-missing-import': 0,
79
- 'node/no-missing-require': 0,
76
+ 'n/no-extraneous-import': 0,
77
+ 'n/no-extraneous-require': 0,
78
+ 'n/no-missing-import': 0,
79
+ 'n/no-missing-require': 0,
80
80
 
81
- 'node/no-unsupported-features/es-syntax': 0,
82
- 'node/no-unsupported-features/node-builtins': 0,
83
- 'node/no-unpublished-import': 0,
84
- 'node/no-unpublished-require': 0,
81
+ 'n/no-unsupported-features/es-syntax': 0,
82
+ 'n/no-unsupported-features/node-builtins': 0,
83
+ 'n/no-unpublished-import': 0,
84
+ 'n/no-unpublished-require': 0,
85
85
  'prefer-const': 2,
86
86
  'prefer-object-spread': 2,
87
87
  'simple-import-sort/exports': 2,
package/overrides.js CHANGED
@@ -1,4 +1,3 @@
1
- /* eslint-disable sonarjs/no-duplicate-string */
2
1
  const path = require('path')
3
2
 
4
3
  const {
@@ -193,7 +192,7 @@ const tsBase = {
193
192
  'no-unused-vars': 0,
194
193
  'no-use-before-define': 0,
195
194
  'no-useless-constructor': 0,
196
- 'node/shebang': 0,
195
+ 'n/shebang': 0,
197
196
  // covered by @typescript-eslint/no-floating-promises
198
197
  'promise/always-return': 0,
199
198
  'promise/catch-or-return': 0,
@@ -211,7 +210,7 @@ exports.ts = [
211
210
  {
212
211
  files: '{bin,cli}.ts',
213
212
  rules: {
214
- 'node/shebang': 0,
213
+ 'n/shebang': 0,
215
214
  },
216
215
  },
217
216
  {
@@ -270,27 +269,6 @@ exports.dTs = {
270
269
  },
271
270
  }
272
271
 
273
- const TSLINT_CONFIG = tryFile(path.resolve('tslint.json'))
274
- const lintFile = TSLINT_CONFIG || tryPkg('@1stg/tslint-config')
275
-
276
- exports.tslint = {
277
- files: '*.{ts,tsx}',
278
- excludedFiles: '*.d.ts',
279
- plugins: TSLINT_CONFIG ? ['@typescript-eslint/tslint'] : undefined,
280
- rules: {
281
- ...(TSLINT_CONFIG
282
- ? undefined
283
- : {
284
- '@typescript-eslint/tslint/config': [
285
- 2,
286
- {
287
- lintFile,
288
- },
289
- ],
290
- }),
291
- },
292
- }
293
-
294
272
  const reactJsx = {
295
273
  extends: ['standard-react', 'plugin:react/recommended', 'prettier'],
296
274
  settings: {
@@ -477,9 +455,9 @@ exports.mdx = {
477
455
  }
478
456
 
479
457
  const nonSourceRules = {
480
- 'node/no-extraneous-import': 0,
481
- 'node/no-extraneous-require': 0,
482
- 'node/no-unsupported-features/es-builtins': 0,
458
+ 'n/no-extraneous-import': 0,
459
+ 'n/no-extraneous-require': 0,
460
+ 'n/no-unsupported-features/es-builtins': 0,
483
461
  }
484
462
 
485
463
  exports.test = {
@@ -513,7 +491,6 @@ exports.overrides = []
513
491
  .concat(
514
492
  isPkgAvailable('@babel/core') && exports.js,
515
493
  isTsAvailable && exports.ts,
516
- isPkgAvailable('tslint') && lintFile && exports.tslint,
517
494
  isReactAvailable && exports.react,
518
495
  isReactAvailable && exports.reactHooks,
519
496
  isReactAvailable && exports.reactTs,
package/package.json CHANGED
@@ -1,41 +1,40 @@
1
1
  {
2
2
  "name": "@1stg/eslint-config",
3
- "version": "3.4.0",
3
+ "version": "4.0.0",
4
4
  "description": "Personal but Shareable ESLint Configuration for all 1stG.me projects.",
5
5
  "repository": "git+https://github.com/1stG/configs.git",
6
6
  "homepage": "https://github.com/1stG/configs/tree/master/packages/eslint-config",
7
7
  "author": "JounQin <admin@1stg.me>",
8
8
  "license": "MIT",
9
9
  "engines": {
10
- "node": ">=12"
10
+ "node": ">=14"
11
11
  },
12
12
  "peerDependencies": {
13
13
  "eslint": ">=6.0.0"
14
14
  },
15
15
  "dependencies": {
16
- "@angular-eslint/eslint-plugin": "^13.1.0",
17
- "@angular-eslint/eslint-plugin-template": "^13.1.0",
18
- "@angular-eslint/template-parser": "^13.1.0",
16
+ "@angular-eslint/eslint-plugin": "^13.2.1",
17
+ "@angular-eslint/eslint-plugin-template": "^13.2.1",
18
+ "@angular-eslint/template-parser": "^13.2.1",
19
19
  "@babel/eslint-parser": "^7.17.0",
20
20
  "@babel/eslint-plugin": "^7.17.7",
21
- "@pkgr/utils": "^2.0.3",
22
- "@typescript-eslint/eslint-plugin": "^5.17.0",
23
- "@typescript-eslint/eslint-plugin-tslint": "^5.17.0",
24
- "@typescript-eslint/parser": "^5.17.0",
21
+ "@pkgr/utils": "^2.1.0",
22
+ "@typescript-eslint/eslint-plugin": "^5.21.0",
23
+ "@typescript-eslint/parser": "^5.21.0",
25
24
  "angular-eslint-template-parser": "^0.1.1",
26
25
  "eslint-config-prettier": "^8.5.0",
27
- "eslint-config-standard": "^16.0.3",
28
- "eslint-config-standard-jsx": "^10.0.0",
26
+ "eslint-config-standard": "^17.0.0",
27
+ "eslint-config-standard-jsx": "^11.0.0",
29
28
  "eslint-config-standard-react": "^11.0.1",
30
29
  "eslint-formatter-friendly": "^7.0.0",
31
- "eslint-import-resolver-typescript": "^2.7.0",
30
+ "eslint-import-resolver-typescript": "^2.7.1",
32
31
  "eslint-plugin-eslint-comments": "^3.2.0",
33
- "eslint-plugin-import": "^2.25.4",
34
- "eslint-plugin-jest": "^26.1.3",
35
- "eslint-plugin-jsdoc": "^38.1.5",
32
+ "eslint-plugin-import": "^2.26.0",
33
+ "eslint-plugin-jest": "^26.1.5",
34
+ "eslint-plugin-jsdoc": "^39.2.9",
36
35
  "eslint-plugin-markup": "^0.8.0",
37
- "eslint-plugin-mdx": "^2.0.0-next.1",
38
- "eslint-plugin-node": "^11.1.0",
36
+ "eslint-plugin-mdx": "^2.0.0-next.2",
37
+ "eslint-plugin-n": "^15.2.0",
39
38
  "eslint-plugin-prettier": "^4.0.0",
40
39
  "eslint-plugin-promise": "^6.0.0",
41
40
  "eslint-plugin-react": "^7.29.4",
@@ -45,7 +44,7 @@
45
44
  "eslint-plugin-sonarjs": "^0.13.0",
46
45
  "eslint-plugin-svelte": "^1.1.2",
47
46
  "eslint-plugin-unicorn": "^42.0.0",
48
- "eslint-plugin-vue": "^8.5.0"
47
+ "eslint-plugin-vue": "^8.7.1"
49
48
  },
50
49
  "publishConfig": {
51
50
  "access": "public"