NOTE:
`stemmer` v2.0.0 switched to ES modules (see
words/stemmer@03519229c8), which means
that the only way to consume it in our CommonJS setup (for example, in
[generateKeywords][1]) is via an async `import()`.
This commit makes the `generateKeywords` processor asynchronous in order
to be able to dynamically import and use `stemmer`.
[1]: 251bec159a/aio/tools/transforms/angular-base-package/processors/generateKeywords.js
PR Close #41724
25 lines
469 B
JavaScript
25 lines
469 B
JavaScript
module.exports = {
|
|
'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'],
|
|
}
|
|
};
|