mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2024-11-16 16:50:12 +00:00
39902cb1c6
* add basic JS tooling * fix accidental uses of global variables * auto-format * add and fix a couple more standard lint rules * remove useless return false from settimeout callbacks * document JS contributing * fix whitespace in package.json * add JS stuff to codespell skiplist * codespell take two * update github action and add comments about duplicated logic
18 lines
390 B
JavaScript
18 lines
390 B
JavaScript
'use strict';
|
|
module.exports = {
|
|
extends: ['eslint:recommended', 'eslint-config-prettier'],
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
},
|
|
env: {
|
|
browser: true,
|
|
},
|
|
rules: {
|
|
strict: ['error', 'global'],
|
|
'no-unused-vars': ['error', { vars: 'local' }],
|
|
eqeqeq: ['error', 'always', { null: 'ignore' }],
|
|
curly: ['error', 'multi-line'],
|
|
'no-var': 'error',
|
|
},
|
|
};
|