Skip to content

Commit

Permalink
Move eslint config into a separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Jun 22, 2022
1 parent ee8355f commit 142501b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 74 deletions.
2 changes: 0 additions & 2 deletions formats/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ class TableCell extends Block {
}
}

// eslint-disable-next-line no-use-before-define
row(): TableRow {
// eslint-disable-next-line no-use-before-define
return this.parent as TableRow;
}

Expand Down
1 change: 1 addition & 0 deletions formats/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Video extends BlockEmbed {
}

domNode: HTMLVideoElement;

format(name, value) {
if (ATTRIBUTES.indexOf(name) > -1) {
if (value) {
Expand Down
73 changes: 1 addition & 72 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,77 +88,6 @@
"bugs": {
"url": "https://github.com/quilljs/quill/issues"
},
"eslintConfig": {
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"prettier"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"plugins": [
"prettier"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "_develop/webpack.config.js"
}
}
},
"rules": {
"arrow-body-style": [
"off"
],
"class-methods-use-this": [
"off"
],
"import/no-cycle": "off",
"no-restricted-exports": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/quotes": "off",
"@typescript-eslint/comma-dangle": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"_develop/*.js",
"test/**/*.js"
]
}
],
"no-param-reassign": [
"off"
],
"no-use-before-define": [
"error",
{
"functions": false
}
],
"import/named": [
"error"
],
"max-classes-per-file": [
"off"
],
"prettier/prettier": "error"
}
},
"eslintIgnore": [
"dist/",
"docs/",
"node_modules/"
],
"prettier": {
"singleQuote": true,
"trailingComma": "all"
Expand All @@ -168,7 +97,7 @@
"build:webpack": "webpack --config _develop/webpack.config.js; rm dist/quill.core dist/quill.bubble dist/quill.snow",
"build:release": "./_develop/scripts/release.sh",
"develop": "npm run start",
"lint": "eslint blots core formats modules themes ui test",
"lint": "eslint .",
"start": "npm run build:webpack; bundle exec foreman start -f _develop/procfile",
"test": "npm run test:unit; npm run test:random",
"test:all": "npm run test:unit; npm run test:functional; npm run test:random",
Expand Down

0 comments on commit 142501b

Please sign in to comment.