@newsteam/eslint-config 0.0.64 → 0.0.65
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/lib/index.js
CHANGED
|
@@ -13,7 +13,7 @@ const config = {
|
|
|
13
13
|
jasmine: true,
|
|
14
14
|
node: true
|
|
15
15
|
},
|
|
16
|
-
extends: ["./plugins/array-function", "./plugins/async-await", "./plugins/css-modules", "./plugins/es", "./plugins/eslint-comments", "./plugins/filenames", "./plugins/format-message", "./plugins/
|
|
16
|
+
extends: ["./plugins/array-function", "./plugins/async-await", "./plugins/css-modules", "./plugins/es", "./plugins/eslint-comments", "./plugins/filenames", "./plugins/format-message", "./plugins/import", "./plugins/more", "./plugins/no-unsanitized", "./plugins/no-useless-assign", "./plugins/node", "./plugins/optimize-regex", "./plugins/prefer-object-spread", "./plugins/promise", "./plugins/react", "./plugins/react-hooks", "./plugins/react-native", "./plugins/react-perf", "./plugins/security", "./plugins/sort-keys-fix", "./plugins/typescript", "./plugins/unicorn", "./plugins/webassembly", "./rules"].map(string => require.resolve(string)),
|
|
17
17
|
overrides: _overrides.overrides,
|
|
18
18
|
parser: "@typescript-eslint/parser",
|
|
19
19
|
parserOptions: {
|
package/lib/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ const config = {
|
|
|
5
5
|
jasmine: true,
|
|
6
6
|
node: true
|
|
7
7
|
},
|
|
8
|
-
extends: ["./plugins/array-function", "./plugins/async-await", "./plugins/css-modules", "./plugins/es", "./plugins/eslint-comments", "./plugins/filenames", "./plugins/format-message", "./plugins/
|
|
8
|
+
extends: ["./plugins/array-function", "./plugins/async-await", "./plugins/css-modules", "./plugins/es", "./plugins/eslint-comments", "./plugins/filenames", "./plugins/format-message", "./plugins/import", "./plugins/more", "./plugins/no-unsanitized", "./plugins/no-useless-assign", "./plugins/node", "./plugins/optimize-regex", "./plugins/prefer-object-spread", "./plugins/promise", "./plugins/react", "./plugins/react-hooks", "./plugins/react-native", "./plugins/react-perf", "./plugins/security", "./plugins/sort-keys-fix", "./plugins/typescript", "./plugins/unicorn", "./plugins/webassembly", "./rules"].map(string => require.resolve(string)),
|
|
9
9
|
overrides,
|
|
10
10
|
parser: "@typescript-eslint/parser",
|
|
11
11
|
parserOptions: {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsteam/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
4
4
|
"description": "Shared config for eslint",
|
|
5
5
|
"main": "lib",
|
|
6
6
|
"types": "lib",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "make build",
|
|
9
|
-
"prepublishOnly": "make prepublish",
|
|
10
|
-
"test": "make test",
|
|
11
|
-
"update": "make update"
|
|
8
|
+
"build": "make build --always-make",
|
|
9
|
+
"prepublishOnly": "make prepublish --always-make",
|
|
10
|
+
"test": "make test --always-make",
|
|
11
|
+
"update": "make update --always-make"
|
|
12
12
|
},
|
|
13
13
|
"browserslist": "node 12",
|
|
14
14
|
"engines": {
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"eslint-plugin-filenames": "1.3.2",
|
|
67
67
|
"eslint-plugin-format-message": "6.2.3",
|
|
68
68
|
"eslint-plugin-import": "2.25.4",
|
|
69
|
-
"eslint-plugin-jsx-control-statements": "2.2.1",
|
|
70
69
|
"eslint-plugin-more": "1.0.5",
|
|
71
70
|
"eslint-plugin-no-unsanitized": "4.0.1",
|
|
72
71
|
"eslint-plugin-no-useless-assign": "1.0.3",
|
|
@@ -99,7 +98,6 @@
|
|
|
99
98
|
"eslint-plugin-filenames": "1.3.2",
|
|
100
99
|
"eslint-plugin-format-message": "6.2.3",
|
|
101
100
|
"eslint-plugin-import": "2.25.4",
|
|
102
|
-
"eslint-plugin-jsx-control-statements": "2.2.1",
|
|
103
101
|
"eslint-plugin-more": "1.0.5",
|
|
104
102
|
"eslint-plugin-no-unsanitized": "4.0.1",
|
|
105
103
|
"eslint-plugin-no-useless-assign": "1.0.3",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
env: {
|
|
3
|
-
"jsx-control-statements/jsx-control-statements": boolean;
|
|
4
|
-
};
|
|
5
|
-
plugins: string[];
|
|
6
|
-
rules: {
|
|
7
|
-
"jsx-control-statements/jsx-choose-not-empty": string;
|
|
8
|
-
"jsx-control-statements/jsx-for-require-each": string;
|
|
9
|
-
"jsx-control-statements/jsx-for-require-of": string;
|
|
10
|
-
"jsx-control-statements/jsx-if-require-condition": string;
|
|
11
|
-
"jsx-control-statements/jsx-jcs-no-undef": string;
|
|
12
|
-
"jsx-control-statements/jsx-otherwise-once-last": string;
|
|
13
|
-
"jsx-control-statements/jsx-use-if-tag": string;
|
|
14
|
-
"jsx-control-statements/jsx-when-require-condition": string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _default = {
|
|
8
|
-
env: {
|
|
9
|
-
"jsx-control-statements/jsx-control-statements": true
|
|
10
|
-
},
|
|
11
|
-
plugins: ["jsx-control-statements"],
|
|
12
|
-
rules: {
|
|
13
|
-
"jsx-control-statements/jsx-choose-not-empty": "error",
|
|
14
|
-
"jsx-control-statements/jsx-for-require-each": "error",
|
|
15
|
-
"jsx-control-statements/jsx-for-require-of": "error",
|
|
16
|
-
"jsx-control-statements/jsx-if-require-condition": "error",
|
|
17
|
-
"jsx-control-statements/jsx-jcs-no-undef": "error",
|
|
18
|
-
"jsx-control-statements/jsx-otherwise-once-last": "error",
|
|
19
|
-
"jsx-control-statements/jsx-use-if-tag": "error",
|
|
20
|
-
"jsx-control-statements/jsx-when-require-condition": "error"
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
exports.default = _default;
|
|
24
|
-
module.exports = exports.default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
env: {
|
|
3
|
-
"jsx-control-statements/jsx-control-statements": true
|
|
4
|
-
},
|
|
5
|
-
plugins: ["jsx-control-statements"],
|
|
6
|
-
rules: {
|
|
7
|
-
"jsx-control-statements/jsx-choose-not-empty": "error",
|
|
8
|
-
"jsx-control-statements/jsx-for-require-each": "error",
|
|
9
|
-
"jsx-control-statements/jsx-for-require-of": "error",
|
|
10
|
-
"jsx-control-statements/jsx-if-require-condition": "error",
|
|
11
|
-
"jsx-control-statements/jsx-jcs-no-undef": "error",
|
|
12
|
-
"jsx-control-statements/jsx-otherwise-once-last": "error",
|
|
13
|
-
"jsx-control-statements/jsx-use-if-tag": "error",
|
|
14
|
-
"jsx-control-statements/jsx-when-require-condition": "error"
|
|
15
|
-
}
|
|
16
|
-
};
|