1.0.1 • Published 2 years ago
@stackup/eslint-config v1.0.1
A metapackage for ESLint configuration for TypeScript projects.
The following plugins are integrated:
eslint-plugin-import
eslint-plugin-jsx-a11y
eslint-plugin-prettier
eslint-plugin-react
eslint-plugin-react-hooks
Usage
If you're starting a project from scratch, just run the following commands:
$ yarn add eslint prettier @stackup/eslint-config --dev
If you're using React, your configuration should look like this:
{
"root": true,
"extends": ["@stackup/eslint-config", "@stackup/eslint-config/react"],
"parserOptions": {
"project": "./tsconfig.json"
},
"settings": {
"react": {
"version": "detect"
}
}
}
Otherwise, your configuration should look like this:
{
"root": true,
"extends": ["@stackup/eslint-config"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
Add the following script to your package.json
:
"scripts": {
"lint": "eslint . --ext .ts,.tsx",
}
1.0.1
2 years ago
1.0.1-alpha.1
2 years ago
1.0.1-alpha.0
2 years ago
1.0.0
4 years ago
1.0.0-alpha.3
4 years ago
1.0.0-alpha.2
4 years ago
1.0.0-alpha.1
4 years ago
1.0.0-alpha.0
4 years ago
0.2.0
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago