Merge pull request #454 from snabbdom/eslint

chore: soft introduce linting
pull/466/head
Shahar Dawn Or 5 years ago committed by GitHub
commit 9053f07131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,34 @@
dist
coverage
test/browserified.js
browserified.js
h.d.ts
h.js
h.js.map
hooks.d.ts
hooks.js
hooks.js.map
htmldomapi.d.ts
htmldomapi.js
htmldomapi.js.map
is.d.ts
is.js
is.js.map
snabbdom.bundle.d.ts
snabbdom.bundle.js
snabbdom.bundle.js.map
snabbdom.d.ts
snabbdom.js
snabbdom.js.map
thunk.d.ts
thunk.js
thunk.js.map
tovnode.d.ts
tovnode.js
tovnode.js.map
vnode.d.ts
vnode.js
vnode.js.map
modules
helpers
es

@ -0,0 +1,56 @@
module.exports = {
extends: 'standard-with-typescript',
parserOptions: { project: [ './tsconfig.json', ] },
rules: {
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/brace-style': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/quotes': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'array-bracket-spacing': 'off',
'block-spacing': 'off',
'brace-style': 'off',
'comma-dangle': 'off',
'comma-spacing': 'off',
'dot-notation': 'off',
'eol-last': 'off',
'import/first': 'off',
'key-spacing': 'off',
'keyword-spacing': 'off',
'no-mixed-operators': 'off',
'no-multi-spaces': 'off',
'no-sequences': 'off',
'no-tabs': 'off',
'no-trailing-spaces': 'off',
'no-undef': 'off',
'no-unneeded-ternary': 'off',
'no-unused-expressions': 'off',
'no-unused-vars': 'off',
'no-void': 'off',
'node/no-deprecated-api': 'off',
'object-curly-newline': 'off',
'object-curly-spacing': 'off',
'object-property-newline': 'off',
'one-var': 'off',
'padded-blocks': 'off',
'prefer-const': 'off',
'quote-props': 'off',
'semi-spacing': 'off',
'space-before-blocks': 'off',
'space-before-function-paren': 'off',
'space-infix-ops': 'off',
'spaced-comment': 'off',
curly: 'off',
eqeqeq: 'off',
indent: 'off',
quotes: 'off',
semi: 'off'
}
}

@ -0,0 +1,14 @@
{
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "typescript",
"autoFix": true
},
{
"language": "typescriptreact",
"autoFix": true
}
]
}

1576
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -10,8 +10,15 @@
"test": "test"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.7.0",
"benchmark": "^2.1.4",
"browserify": "^14.4.0",
"eslint": "^6.6.0",
"eslint-config-standard-with-typescript": "^11.0.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"fake-raf": "1.0.1",
"gulp": "^3.9.1",
"gulp-clean": "^0.3.2",
@ -27,12 +34,14 @@
"karma-typescript": "^3.0.13",
"knuth-shuffle": "^1.0.1",
"mocha": "^5.2.0",
"npm-run-all": "^4.1.5",
"typescript": "^3.0.3",
"xyz": "2.1.0"
},
"scripts": {
"pretest": "npm run compile",
"test": "karma start",
"lint": "eslint --ext .js,.ts .",
"unit": "karma start",
"test": "run-s lint compile unit",
"compile": "npm run compile-es && npm run compile-commonjs",
"compile-es": "tsc --outDir es --module es6 --moduleResolution node",
"compile-commonjs": "tsc --outDir ./",

Loading…
Cancel
Save