@ringieraxelspringer/eslint-config
v24.1.1
Published
Common Ringier Axel Springer ESLint configuration
Downloads
1,614
Readme
@ringieraxelspringer/eslint-config
Common Ringier Axel Springer ESLint configuration.
Requirements
TypeScript
This package contains rules that require TypeScript 3.9 or newer. If you use earlier version of TypeScript, you will have to use older version of this package (<7.0.0).
Installation
npm install --save-dev @ringieraxelspringer/eslint-config
Usage (package.json)
{
"scripts": {
"lint:js": "eslint --ext .js,.jsx,.ts,.tsx src/",
"lint:js:fix": "npm run lint:js -- --fix"
},
"devDependencies": {
"@ringieraxelspringer/eslint-config": "latest"
},
"eslintConfig": {
"extends": "@ringieraxelspringer/eslint-config"
}
}
If you need, you can also set parser dedicated for your application like:
{
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/eslint-parser": "^7.0.0"
},
"eslintConfig": {
"extends": "@ringieraxelspringer/eslint-config",
"parser": "@babel/eslint-parser"
}
}