mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
66c6dbdc79
add the max-len rule to the aio eslintrc and fix what code breaks such rule PR Close #43439
26 lines
485 B
JavaScript
26 lines
485 B
JavaScript
module.exports = {
|
|
'root': true,
|
|
'env': {
|
|
'es6': true,
|
|
'jasmine': true,
|
|
'node': true
|
|
},
|
|
'extends': [
|
|
'eslint:recommended',
|
|
'plugin:jasmine/recommended'
|
|
],
|
|
'parserOptions': {
|
|
'ecmaVersion': 2020,
|
|
},
|
|
'plugins': [
|
|
'jasmine'
|
|
],
|
|
'rules': {
|
|
'linebreak-style': ['error', 'unix'],
|
|
'no-prototype-builtins': ['off'],
|
|
'quotes': ['error', 'single'],
|
|
'semi': ['error', 'always'],
|
|
'jasmine/new-line-before-expect': ['off'],
|
|
}
|
|
};
|