1
0
Fork 0
dokuwiki-plugins-extra/plugins/55/edittable/.eslintrc.js
Daniel Baumann 778f9ac0bf
Adding edittable version 2023-01-14 (66785d9).
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-03-24 19:33:14 +01:00

63 lines
1.4 KiB
JavaScript

module.exports = {
'parserOptions': {
'ecmaVersion': 5
},
'env': {
'browser': true,
'jquery': true
},
'plugins': [
'compat'
],
'extends': 'eslint:recommended',
'rules': {
'compat/compat': 'error',
'valid-jsdoc': 'warn',
'default-case': 'error',
'eqeqeq': [
'error',
'smart'
],
'no-magic-numbers': [
'error',
{
'ignoreArrayIndexes': true,
'ignore': [
-1,
0,
1
]
}
],
'comma-dangle': [
'error',
'never',
],
"indent": [
"error",
4,
],
"quotes": [
"error",
"single",
],
"dot-notation": ["warn"],
"object-shorthand": ["error", "never"],
"linebreak-style": [
"error",
"unix",
],
"no-implicit-globals": "error",
"no-return-assign": "error",
"no-throw-literal": "error",
"strict": ["error", "function"],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": false,
"ArrowFunctionExpression": false
}
}]
},
};