The ESLint config used within Tobii Cloud Services.
In your project's .eslintrc.js
module.exports = {
extends: [
'firecloud/node'
],
rules: {
'override-some-rule': error
}
}
Optionally, you can run node_modules/eslint-config-firecloud/npm-install-peer-dependencies
in order to install the required peer dependencies.
If you want to use an addon, it's as easy as doing this in .eslintrc.js
:
module.exports = {
extends: [
'firecloud/node',
'firecloud/configs/jest'
],
rules: {
'override-some-rule': error
}
}
and running npm install --dev eslint-plugin-jest
.
Common bundles are provided as following:
firecloud/node
firecloud/browser
These addons require you to install the plugin manually:
@typescript-eslint/eslint-plugin
: firecloud/configs/typescript
eslint-plugin-jasmine
: firecloud/configs/jasmine
eslint-plugin-jest
: firecloud/configs/jest
eslint-plugin-mocha
(with Chai): firecloud/configs/mocha
eslint-plugin-protractor
: firecloud/configs/protractor
eslint-plugin-vue
: firecloud/configs/vue
"I (don't) like/want ..." is no argument in this codebase. Instead, we follow a few guiding principles that have concrete consequences on daily work.