eslint-config 0.2.0
Install from the command line:
Learn more about npm packages
$ npm install @uniwise/eslint-config@0.2.0
Install via package.json:
"@uniwise/eslint-config": "0.2.0"
About this version
WISEflow's ESLint config for react.
# Install eslint and required packages
yarn add -D @uniwise/eslint-config eslint typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-import-resolver-typescript eslint-plugin-import prettier eslint-config-prettier eslint-plugin-prettier
# For React add react plugin
yarn add -D eslint-plugin-react
After installing, update your project's .eslintrc.(json|js)
or file to import the rule sets you want.
- React -
@uniwise/eslint-config
or specifically@uniwise/eslint-config/react
- Typescript (No react) -
@uniwise/eslint-config/typescript
e.g in ./eslintrc.json
{
"extends": ["@uniwise/eslint-config"],
"rules": {
"overriding_some_rule": "warn"
}
}
or in ./eslintrc.js
module.exports = {
extends: ['@uniwise/eslint-config/typescript']
rules: {
"overriding_some_rule": "warn"
}
};
To run the linter:
yarn eslint src/
Read the ESlint config docs for more information.
Details
- eslint-config
- UNIwise
- over 1 year ago
- Apache-2.0
- 20 dependencies
Assets
- eslint-config-0.2.0.tgz
Download activity
- Total downloads 18,397
- Last 30 days 2
- Last week 0
- Today 0