@trileuco/eslint-config-triskel
v1.2.2
Published
ESLint config ready to be used in multiple projects
Maintainers
Readme
eslint-config-triskel
Features
- Based on the the popular JavaScript Standard code style.
- With Prettier support, thanks to eslint-plugin-prettier.
- With react, react-hooks and jest support.
Installation
The default export contains all default Standard ESLint rules, including ECMAScript 6+, and the ones listed below. It requires some peerDependencies as well.
Ensure that you have been logged to Trileuco JS Registry:
npm login --registry=https://registry-js.trileuco.com --scope=@trileucoInstall the package with:
npm install @trileuco/eslint-config-triskel --save-dev --registry=https://registry-js.trileuco.comUsage
Now add the configuration to either your package.json:
{
"eslintConfig": {
"extends": "@trileuco/eslint-config-triskel"
}
}to your .eslintrc:
{
"extends": "@trileuco/eslint-config-triskel"
}or .eslintrc.js:
module.exports = {
extends: '@trileuco/eslint-config-triskel'
}Assumptions
This ESLint configuration comes with some fundamental assumptions:
- React and/or node environment.
- Jest as the selected test-suite.
- Browser and/or node environment.
- Parser: Babel (used babel-eslint parser).
Even though there were made some assumptions, you can easily overwrite, extend and unset rules and any other setting in your custom ESLint configuration.
