neatlint 1.0.1 → 1.0.2

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 CHANGED
@@ -179,9 +179,12 @@ Neatlint offers strict ESLint settings.
179
179
  | [no-duplicate-imports](https://eslint.org/docs/latest/rules/no-duplicate-imports) | Disallow duplicate module imports. |
180
180
  | [no-empty](https://eslint.org/docs/latest/rules/no-empty) | Disallow empty block statements. |
181
181
  | [no-restricted-syntax](https://eslint.org/docs/latest/rules/no-restricted-syntax) | Disallow specified syntax. |
182
+ | [no-useless-backreference](https://eslint.org/docs/latest/rules/no-useless-backreference) | Disallow useless backreferences in regular expressions. |
183
+ | [no-useless-computed-key](https://eslint.org/docs/latest/rules/no-useless-computed-key) | Disallow unnecessary computed property keys in objects and classes. |
182
184
  | [no-useless-catch](https://eslint.org/docs/latest/rules/no-useless-catch) | Disallow unnecessary catch clauses. |
183
185
  | [no-useless-concat](https://eslint.org/docs/latest/rules/no-useless-concat) | Disallow unnecessary concatenation of literals or template literals. |
184
186
  | [no-useless-constructor](https://eslint.org/docs/latest/rules/no-useless-constructor) | Disallow unnecessary constructors. |
187
+ | [no-useless-escape](https://eslint.org/docs/latest/rules/no-useless-escape) | Disallow unnecessary escape characters. |
185
188
  | [no-useless-rename](https://eslint.org/docs/latest/rules/no-useless-rename) | Disallow renaming import, export, and destructured assignments to the same name. |
186
189
  | [no-useless-return](https://eslint.org/docs/latest/rules/no-useless-return) | Disallow redundant return statements. |
187
190
  | [no-var](https://eslint.org/docs/latest/rules/no-var) | Require let or const instead of var. |
@@ -67,9 +67,12 @@ var NeatlintOptionsDefault = {
67
67
  "no-duplicate-imports": "error",
68
68
  "no-empty": "error",
69
69
  "no-restricted-syntax": ["error", "SwitchStatement"],
70
+ "no-useless-backreference": "error",
70
71
  "no-useless-catch": "error",
72
+ "no-useless-computed-key": "error",
71
73
  "no-useless-concat": "error",
72
74
  "no-useless-constructor": "error",
75
+ "no-useless-escape": "error",
73
76
  "no-useless-rename": "error",
74
77
  "no-useless-return": "error",
75
78
  "no-var": "error",
@@ -1,11 +1,11 @@
1
1
  // src/defaults/NeatlintOptions.default.ts
2
- import TSEslint from "typescript-eslint";
2
+ import TSESLint from "typescript-eslint";
3
3
  var NeatlintOptionsDefault = {
4
4
  ignores: ["./dist/**"],
5
5
  typescript_eslint: {
6
6
  files: ["**/*.ts", "**/*.tsx"],
7
7
  languageOptions: {
8
- parser: TSEslint.parser,
8
+ parser: TSESLint.parser,
9
9
  parserOptions: {
10
10
  project: "./tsconfig.json",
11
11
  sourceType: "module"
@@ -33,9 +33,12 @@ var NeatlintOptionsDefault = {
33
33
  "no-duplicate-imports": "error",
34
34
  "no-empty": "error",
35
35
  "no-restricted-syntax": ["error", "SwitchStatement"],
36
+ "no-useless-backreference": "error",
36
37
  "no-useless-catch": "error",
38
+ "no-useless-computed-key": "error",
37
39
  "no-useless-concat": "error",
38
40
  "no-useless-constructor": "error",
41
+ "no-useless-escape": "error",
39
42
  "no-useless-rename": "error",
40
43
  "no-useless-return": "error",
41
44
  "no-var": "error",
package/dist/main.js CHANGED
@@ -73,9 +73,12 @@ var NeatlintOptionsDefault = {
73
73
  "no-duplicate-imports": "error",
74
74
  "no-empty": "error",
75
75
  "no-restricted-syntax": ["error", "SwitchStatement"],
76
+ "no-useless-backreference": "error",
76
77
  "no-useless-catch": "error",
78
+ "no-useless-computed-key": "error",
77
79
  "no-useless-concat": "error",
78
80
  "no-useless-constructor": "error",
81
+ "no-useless-escape": "error",
79
82
  "no-useless-rename": "error",
80
83
  "no-useless-return": "error",
81
84
  "no-var": "error",
package/dist/main.mjs CHANGED
@@ -1,15 +1,15 @@
1
1
  // src/utils/Neatlint.util.ts
2
- import TSEslint2 from "typescript-eslint";
2
+ import TSESLint2 from "typescript-eslint";
3
3
  import _ from "lodash";
4
4
 
5
5
  // src/defaults/NeatlintOptions.default.ts
6
- import TSEslint from "typescript-eslint";
6
+ import TSESLint from "typescript-eslint";
7
7
  var NeatlintOptionsDefault = {
8
8
  ignores: ["./dist/**"],
9
9
  typescript_eslint: {
10
10
  files: ["**/*.ts", "**/*.tsx"],
11
11
  languageOptions: {
12
- parser: TSEslint.parser,
12
+ parser: TSESLint.parser,
13
13
  parserOptions: {
14
14
  project: "./tsconfig.json",
15
15
  sourceType: "module"
@@ -37,9 +37,12 @@ var NeatlintOptionsDefault = {
37
37
  "no-duplicate-imports": "error",
38
38
  "no-empty": "error",
39
39
  "no-restricted-syntax": ["error", "SwitchStatement"],
40
+ "no-useless-backreference": "error",
40
41
  "no-useless-catch": "error",
42
+ "no-useless-computed-key": "error",
41
43
  "no-useless-concat": "error",
42
44
  "no-useless-constructor": "error",
45
+ "no-useless-escape": "error",
43
46
  "no-useless-rename": "error",
44
47
  "no-useless-return": "error",
45
48
  "no-var": "error",
@@ -57,7 +60,7 @@ var Neatlint = (options = NeatlintOptionsDefault) => {
57
60
  options = _.merge({}, NeatlintOptionsDefault, options);
58
61
  return [
59
62
  { ignores: options.ignores },
60
- ...TSEslint2.configs.strict,
63
+ ...TSESLint2.configs.strict,
61
64
  {
62
65
  files: options.typescript_eslint.files,
63
66
  languageOptions: options.typescript_eslint.languageOptions,
@@ -71,9 +71,12 @@ var NeatlintOptionsDefault = {
71
71
  "no-duplicate-imports": "error",
72
72
  "no-empty": "error",
73
73
  "no-restricted-syntax": ["error", "SwitchStatement"],
74
+ "no-useless-backreference": "error",
74
75
  "no-useless-catch": "error",
76
+ "no-useless-computed-key": "error",
75
77
  "no-useless-concat": "error",
76
78
  "no-useless-constructor": "error",
79
+ "no-useless-escape": "error",
77
80
  "no-useless-rename": "error",
78
81
  "no-useless-return": "error",
79
82
  "no-var": "error",
@@ -1,15 +1,15 @@
1
1
  // src/utils/Neatlint.util.ts
2
- import TSEslint2 from "typescript-eslint";
2
+ import TSESLint2 from "typescript-eslint";
3
3
  import _ from "lodash";
4
4
 
5
5
  // src/defaults/NeatlintOptions.default.ts
6
- import TSEslint from "typescript-eslint";
6
+ import TSESLint from "typescript-eslint";
7
7
  var NeatlintOptionsDefault = {
8
8
  ignores: ["./dist/**"],
9
9
  typescript_eslint: {
10
10
  files: ["**/*.ts", "**/*.tsx"],
11
11
  languageOptions: {
12
- parser: TSEslint.parser,
12
+ parser: TSESLint.parser,
13
13
  parserOptions: {
14
14
  project: "./tsconfig.json",
15
15
  sourceType: "module"
@@ -37,9 +37,12 @@ var NeatlintOptionsDefault = {
37
37
  "no-duplicate-imports": "error",
38
38
  "no-empty": "error",
39
39
  "no-restricted-syntax": ["error", "SwitchStatement"],
40
+ "no-useless-backreference": "error",
40
41
  "no-useless-catch": "error",
42
+ "no-useless-computed-key": "error",
41
43
  "no-useless-concat": "error",
42
44
  "no-useless-constructor": "error",
45
+ "no-useless-escape": "error",
43
46
  "no-useless-rename": "error",
44
47
  "no-useless-return": "error",
45
48
  "no-var": "error",
@@ -57,7 +60,7 @@ var Neatlint = (options = NeatlintOptionsDefault) => {
57
60
  options = _.merge({}, NeatlintOptionsDefault, options);
58
61
  return [
59
62
  { ignores: options.ignores },
60
- ...TSEslint2.configs.strict,
63
+ ...TSESLint2.configs.strict,
61
64
  {
62
65
  files: options.typescript_eslint.files,
63
66
  languageOptions: options.typescript_eslint.languageOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neatlint",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Strict ESLint presets for modern TypeScript projects.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/keift/neatlint",