@scrapoxy/eslint-plugin
v1.0.11
Published
ESLint rules for Scrapoxy
Downloads
36
Readme
Scrapoxy ESLint Rules
Build it
npm run build
Publish it
cd dist/eslint-plugin
npm publish --access public
Configure your project
Add the file .eslintrc.js
on the project root:
module.exports = {
root: true,
overrides: [
{
files: [
'*.ts',
],
extends: [
'plugin:@scrapoxy/base',
'plugin:@scrapoxy/typescript',
'plugin:@scrapoxy/naming-conventions',
],
parserOptions: {
project: [
'./tsconfig.json',
],
},
},
],
};
For Angular, you can add :
...
extends: [
'plugin:@scrapoxy/base',
'plugin:@scrapoxy/typescript',
'plugin:@scrapoxy/naming-conventions',
'plugin:@scrapoxy/angular',
],
...
Add the configuration in the package.json
:
...
"scripts": {
"lint": "eslint --fix **/*.ts"
},
...