This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update dependencies, support ESLint v6 (#17)
BREAKING CHANGE: New and updated linting rules bubbled up from latest Airbnb version. New dependencies and dependency versions required within your app. Using `airbnb-typescript`? ``` npm install eslint-config-airbnb-typescript@latest \ eslint-plugin-import@^2.18.2 \ eslint-plugin-jsx-a11y@^6.2.3 \ eslint-plugin-react@^7.14.3 \ eslint-plugin-react-hooks@^1.7.0 \ @typescript-eslint/eslint-plugin@^2.3.0 \ --save-dev ``` Using `airbnb-typescript/base` (no React support)? ``` npm install eslint-config-airbnb-typescript@latest \ eslint-plugin-import@^2.18.2 \ @typescript-eslint/eslint-plugin@^2.3.0 \ --save-dev ```
- Loading branch information
Showing
5 changed files
with
799 additions
and
1,578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
module.exports = { | ||
linters: { | ||
"package.json": ["npm run format:package", "git add"], | ||
".editorconfig": ["prettier --write", "git add"], | ||
LICENSE: ["prettier --write", "git add"], | ||
"**/*.{json,md,yml}": ["prettier --write", "git add"], | ||
"**/*.js": ["prettier --write", "eslint --cache --fix", "git add"], | ||
}, | ||
// The formatting tools are ordered to run sequentially | ||
concurrent: false, | ||
"**/*.{json,md,yml}": ["prettier --write", "git add"], | ||
"**/*.js": ["prettier --write", "eslint --cache --fix", "git add"], | ||
".editorconfig": ["prettier --write", "git add"], | ||
LICENSE: ["prettier --write", "git add"], | ||
"package.json": ["prettier --write", "npm run format:package", "git add"], | ||
} |
Oops, something went wrong.