UNPKG

650 BJavaScriptView Raw
1/*
2override airbnb
3repo: https://github.com/airbnb/javascript
4code: https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/variables.js
5rule: https://eslint.org/docs/rules/#variables
6*/
7
8module.exports = {
9 rules: {
10 // disallow deletion of variables
11 'no-delete-var': 'error',
12
13 // disallow use of undeclared variables unless mentioned in a /*global */ block
14 'no-undef': 'error',
15
16 // disallow unused variables
17 'no-unused-vars': [
18 'warn',
19 {
20 vars: 'all',
21 args: 'after-used',
22 argsIgnorePattern: '^_',
23 ignoreRestSiblings: true,
24 },
25 ],
26 },
27};