2.0.7-debug03 • Published 2 years ago
@dhi-gras/eslint-config-ts v2.0.7-debug03
ESLint config for TS projects
Linting rules to be used in JavaScript / ES projects.
Installation
yarn add -D @dhi-gras/eslint-config-ts @dhi-gras/eslint-config-react @typescript-eslint/eslint-plugin eslint-plugin-radar eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks prettier eslint-plugin-prettier eslint-plugin-eslint-comments eslint-plugin-json
If you're not using React, omit @dhi-gras/eslint-config-react eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks
Extensions
If you're using VSCode, install the ESLint extension.
Add to your VSCode settings.json
:
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
}
ESLint can also be used in other editors and in CLI.
Linting and formatting should work without installing the Prettier extension, but only in ES/JS/TS files.
Setup
Add to package.json
"eslintConfig": {
"extends": [
"@dhi-gras/react",
"@dhi-gras/ts"
]
},
If you're not using React, omit "@dhi-gras/react"
2.0.7-debug01
2 years ago
2.0.7-debug02
2 years ago
2.0.7-debug03
2 years ago
2.0.7
2 years ago
2.0.6
3 years ago
2.0.5
4 years ago
2.0.4
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.0
5 years ago