mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
58 lines
1.2 KiB
JavaScript
58 lines
1.2 KiB
JavaScript
module.exports = {
|
|
extends: 'ash-nazg/sauron-node',
|
|
settings: {
|
|
polyfills: [
|
|
'console',
|
|
'document.body'
|
|
]
|
|
},
|
|
overrides: [{
|
|
files: 'test/**.js',
|
|
extends: [
|
|
'plugin:chai-friendly/recommended',
|
|
'plugin:chai-expect/recommended'
|
|
],
|
|
env: {
|
|
mocha: true
|
|
},
|
|
globals: {
|
|
expect: true,
|
|
assert: true
|
|
},
|
|
rules: {
|
|
'node/no-unsupported-features/es-syntax': 0
|
|
}
|
|
}, {
|
|
files: 'tests/**.js',
|
|
rules: {
|
|
'no-console': 0
|
|
}
|
|
}, {
|
|
files: '*.md',
|
|
globals: {
|
|
require: false,
|
|
RegExtras: false,
|
|
condition: false,
|
|
regex: false,
|
|
str: false
|
|
},
|
|
rules: {
|
|
'node/no-unsupported-features/es-syntax': 0,
|
|
'node/no-extraneous-require': ['error', {allowModules: ['regextras']}],
|
|
'import/unambiguous': 0,
|
|
'import/no-commonjs': 0,
|
|
'import/no-extraneous-dependencies': 0,
|
|
'no-shadow': ['error', {allow: ['RegExtras']}],
|
|
'no-unused-vars': ['error', {
|
|
varsIgnorePattern: 'matches|RegExtras|piglatinArray',
|
|
argsIgnorePattern: 'matches'
|
|
}]
|
|
}
|
|
}],
|
|
rules: {
|
|
// Disable for now
|
|
'prefer-named-capture-group': 0,
|
|
'require-unicode-regexp': 0
|
|
}
|
|
};
|