Skip to content

Commit

Permalink
chore: update devDeps
Browse files Browse the repository at this point in the history
Also lints ncurc file and avoids updating typescript until there is a ts parser bump
  • Loading branch information
brettz9 committed Aug 22, 2020
1 parent ae2f76a commit 2bc9152
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
13 changes: 13 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{
"extends": "canonical",
"root": true,
"overrides": [{
"files": ".ncurc.js",
"parserOptions": {
"sourceType": "script",
"ecmaFeatures": {
"impliedStrict": false
}
},
"rules": {
"import/no-commonjs": 0,
"strict": ["error", "global"]
}
}],
"rules": {
"array-element-newline": 0,
"filenames/match-regex": 0,
Expand Down
5 changes: 4 additions & 1 deletion .ncurc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ module.exports = {
// Whitelist all for checking besides `peer` which indicates
// somewhat older versions of `eslint` we still support even
// while our devDeps point to a more recent version
dep: 'prod,dev,optional,bundle'
dep: 'prod,dev,optional,bundle',

// Todo [@typescript-eslint/parser@>=4]: Not supporting typescript 4
reject: ['typescript'],
};
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
"description": "JSDoc linting rules for ESLint.",
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.1",
"@babel/core": "^7.11.4",
"@babel/node": "^7.10.5",
"@babel/plugin-transform-flow-strip-types": "^7.10.4",
"@babel/preset-env": "^7.11.0",
"@babel/register": "^7.10.5",
"@hkdobrev/run-if-changed": "^0.3.1",
"@typescript-eslint/parser": "^3.9.0",
"@typescript-eslint/parser": "^3.9.1",
"babel-eslint": "^10.1.0",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-istanbul": "^6.0.0",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"eslint": "7.7.0",
"eslint-config-canonical": "^23.0.0",
"eslint-config-canonical": "^23.0.1",
"gitdown": "^3.1.3",
"glob": "^7.1.6",
"husky": "^4.2.5",
Expand All @@ -45,7 +45,6 @@
},
"lint-staged": {
".eslintignore": "npm run lint",
".eslintrc.json": "npm run lint",
"./*.js": "npm run lint-arg --",
"src/**/*.js": "npm run lint-arg --",
"test/**/*.js": "npm run lint-arg --"
Expand Down Expand Up @@ -84,7 +83,7 @@
"create-readme": "babel-node ./src/bin/generateReadme.js",
"install-offline": "npm install --prefer-offline --no-audit",
"lint-fix": "eslint --report-unused-disable-directives --fix ./src ./test",
"lint": "eslint --report-unused-disable-directives ./src ./test",
"lint": "eslint --report-unused-disable-directives ./src ./test .ncurc.js",
"lint-arg": "eslint --report-unused-disable-directives",
"test-cov": "cross-env BABEL_ENV=test nyc mocha --recursive --require @babel/register --reporter progress --timeout 9000",
"test-no-cov": "cross-env BABEL_ENV=test mocha --recursive --require @babel/register --reporter progress --timeout 9000",
Expand Down

0 comments on commit 2bc9152

Please sign in to comment.