eslint-config-frontend should be used instead.
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @lokalise/eslint-plugin
:
$ npm i @lokalise/eslint-plugin --save-dev
Add @lokalise/eslint-plugin
to the plugins section of your .eslintrc
configuration file.
{
"plugins": [
"@lokalise/eslint-plugin"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@lokalise/package-boundary": "error",
"@lokalise/relative-internal-imports": "error"
}
}
$ npm i
$ npm run test
Follow our guidelines
- @lokalise/package-boundary: Ensures all the imports and exports happen through index.
- @lokalise/relative-internal-imports: Ensures module internal imports are relative.
This library is licensed under MIT.
Copyright (c) Lokalise Group