Skip to content

Add more packages and blocklist more rules #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg && \
yarn config set prefix $PREFIX && \
yarn install --modules-folder $PREFIX && \
chown -R app:app $PREFIX && \
version="v$(yarn list eslint | grep eslint | sed -n 's/.*@//p')" && \
version="v$(yarn list eslint --depth=0 | grep eslint | sed -n 's/.*@//p')" && \
bin/docs "$version" && \
cat engine.json | jq ".version = \"$version\"" > /engine.json && \
apt-get purge -y git jq yarn && \
Expand Down
11 changes: 10 additions & 1 deletion lib/rule_blocklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,18 @@ const Config = require("eslint/lib/config")
, merge = require("eslint/lib/config/config-ops").merge;

const blocklistedRules = [
"import/extensions",
"import/no-restricted-paths",
"import/no-unresolved",
"node/no-hide-code-modules"
"import/no-extraneous-dependencies",
"import/no-named-as-default",
"import/namespace",
"import/named",
"import/no-absolute-path",
"import/no-duplicates",
"import/no-named-as-default-member",
"node/no-hide-code-modules",
"node/no-missing-require"
];

function filterRules(rules) {
Expand Down
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,31 @@
"eslint-config-airbnb": "^15.1.0",
"eslint-config-airbnb-base": "^12.0.0",
"eslint-config-angular": "^0.5.0",
"eslint-config-dbk": "^3.2.1",
"eslint-config-drupal": "^4.0.1",
"eslint-config-ember": "^0.3.0",
"eslint-config-es5": "^0.5.0",
"eslint-config-es6": "^1.10.3",
"eslint-config-google": "^0.9.1",
"eslint-config-jquery": "^1.0.1",
"eslint-config-loopback": "^8.0.0",
"eslint-config-nightmare-mode": "^2.3.0",
"eslint-config-nodesecurity": "^1.3.1",
"eslint-config-prettier": "^2.5.0",
"eslint-config-secure": "^0.2.1",
"eslint-config-signavio": "^3.2.0",
"eslint-config-signavio-test": "^2.0.0",
"eslint-config-standard-jsx": "^4.0.2",
"eslint-config-standard-react": "^5.0.0",
"eslint-config-vue": "^2.0.2",
"eslint-config-xo": "^0.19.0",
"eslint-config-xo-react": "^0.14.0",
"eslint-config-xo-space": "^0.17.0",
"eslint-import-resolver-node": "^0.3.1",
"eslint-import-resolver-webpack": "^0.8.3",
"eslint-plugin-angular": "^3.1.1",
"eslint-plugin-backbone": "^2.1.1",
"eslint-plugin-drupal": "^0.3.1",
"eslint-plugin-ember": "^4.5.0",
"eslint-plugin-flowtype": "^2.35.1",
"eslint-plugin-html": "^3.2.2",
Expand All @@ -35,11 +51,14 @@
"eslint-plugin-meteor": "^4.1.4",
"eslint-plugin-mocha": "^4.11.0",
"eslint-plugin-mongodb": "^0.2.4",
"eslint-plugin-no-only-tests": "^2.0.0",
"eslint-plugin-no-unsafe-innerhtml": "^1.0.16",
"eslint-plugin-node": "^5.1.1",
"eslint-plugin-prettier": "2.3.1",
"eslint-plugin-react": "^7.4.0",
"eslint-plugin-react-native": "^3.1.0",
"eslint-plugin-security": "1.4.0",
"eslint-plugin-sorting": "^0.3.0",
"glob": "^7.1.2",
"prettier": "^1.7.0"
},
Expand Down
Loading