Skip to content

Commit f625f5f

Browse files
authored
Add more packages and blocklist more rules (#350)
* Find parent eslint package There may be another package that depends on eslint, and in that case, we get multiple versions in the output here * Add more packages and blocklist more rules Ports #342 to the eslint-4 channel Addresses #320
1 parent 9968ac5 commit f625f5f

File tree

4 files changed

+990
-32
lines changed

4 files changed

+990
-32
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg && \
2222
yarn config set prefix $PREFIX && \
2323
yarn install --modules-folder $PREFIX && \
2424
chown -R app:app $PREFIX && \
25-
version="v$(yarn list eslint | grep eslint | sed -n 's/.*@//p')" && \
25+
version="v$(yarn list eslint --depth=0 | grep eslint | sed -n 's/.*@//p')" && \
2626
bin/docs "$version" && \
2727
cat engine.json | jq ".version = \"$version\"" > /engine.json && \
2828
apt-get purge -y git jq yarn && \

lib/rule_blocklist.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@ const Config = require("eslint/lib/config")
55
, merge = require("eslint/lib/config/config-ops").merge;
66

77
const blocklistedRules = [
8+
"import/extensions",
89
"import/no-restricted-paths",
910
"import/no-unresolved",
10-
"node/no-hide-code-modules"
11+
"import/no-extraneous-dependencies",
12+
"import/no-named-as-default",
13+
"import/namespace",
14+
"import/named",
15+
"import/no-absolute-path",
16+
"import/no-duplicates",
17+
"import/no-named-as-default-member",
18+
"node/no-hide-code-modules",
19+
"node/no-missing-require"
1120
];
1221

1322
function filterRules(rules) {

package.json

+19
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,31 @@
1414
"eslint-config-airbnb": "^15.1.0",
1515
"eslint-config-airbnb-base": "^12.0.0",
1616
"eslint-config-angular": "^0.5.0",
17+
"eslint-config-dbk": "^3.2.1",
18+
"eslint-config-drupal": "^4.0.1",
1719
"eslint-config-ember": "^0.3.0",
20+
"eslint-config-es5": "^0.5.0",
21+
"eslint-config-es6": "^1.10.3",
1822
"eslint-config-google": "^0.9.1",
1923
"eslint-config-jquery": "^1.0.1",
2024
"eslint-config-loopback": "^8.0.0",
2125
"eslint-config-nightmare-mode": "^2.3.0",
26+
"eslint-config-nodesecurity": "^1.3.1",
2227
"eslint-config-prettier": "^2.5.0",
28+
"eslint-config-secure": "^0.2.1",
29+
"eslint-config-signavio": "^3.2.0",
30+
"eslint-config-signavio-test": "^2.0.0",
2331
"eslint-config-standard-jsx": "^4.0.2",
2432
"eslint-config-standard-react": "^5.0.0",
33+
"eslint-config-vue": "^2.0.2",
34+
"eslint-config-xo": "^0.19.0",
35+
"eslint-config-xo-react": "^0.14.0",
36+
"eslint-config-xo-space": "^0.17.0",
37+
"eslint-import-resolver-node": "^0.3.1",
38+
"eslint-import-resolver-webpack": "^0.8.3",
2539
"eslint-plugin-angular": "^3.1.1",
40+
"eslint-plugin-backbone": "^2.1.1",
41+
"eslint-plugin-drupal": "^0.3.1",
2642
"eslint-plugin-ember": "^4.5.0",
2743
"eslint-plugin-flowtype": "^2.35.1",
2844
"eslint-plugin-html": "^3.2.2",
@@ -35,11 +51,14 @@
3551
"eslint-plugin-meteor": "^4.1.4",
3652
"eslint-plugin-mocha": "^4.11.0",
3753
"eslint-plugin-mongodb": "^0.2.4",
54+
"eslint-plugin-no-only-tests": "^2.0.0",
55+
"eslint-plugin-no-unsafe-innerhtml": "^1.0.16",
3856
"eslint-plugin-node": "^5.1.1",
3957
"eslint-plugin-prettier": "2.3.1",
4058
"eslint-plugin-react": "^7.4.0",
4159
"eslint-plugin-react-native": "^3.1.0",
4260
"eslint-plugin-security": "1.4.0",
61+
"eslint-plugin-sorting": "^0.3.0",
4362
"glob": "^7.1.2",
4463
"prettier": "^1.7.0"
4564
},

0 commit comments

Comments
 (0)