mirror of https://github.com/doccano/doccano.git
Browse Source
Merge pull request #119 from CatalystCode/enhancement/eslint-ci
Merge pull request #119 from CatalystCode/enhancement/eslint-ci
Enhancement/Run ESlint during CIpull/145/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 104 additions and 91 deletions
Split View
Diff Options
-
12.travis.yml
-
8Dockerfile
-
1app/server/package.json
-
19app/server/static/js/.eslintrc.js
-
4app/server/static/js/dataset.js
-
4app/server/static/js/demo/demo_mixin.js
-
24app/server/static/js/demo/demo_named_entity.js
-
4app/server/static/js/demo/demo_text_classification.js
-
4app/server/static/js/demo/demo_translation.js
-
2app/server/static/js/document_classification.js
-
13app/server/static/js/filter.js
-
9app/server/static/js/guideline.js
-
14app/server/static/js/label.js
-
12app/server/static/js/mixin.js
-
12app/server/static/js/projects.js
-
8app/server/static/js/seq2seq.js
-
28app/server/static/js/sequence_labeling.js
-
5app/server/static/js/stats.js
-
10app/server/static/js/upload.js
-
2tools/ci.sh
@ -1,4 +1,21 @@ |
|||
module.exports = { |
|||
"extends": "airbnb-base" |
|||
env: { |
|||
browser: true, |
|||
es6: true, |
|||
node: true, |
|||
}, |
|||
parserOptions: { |
|||
parser: "babel-eslint", |
|||
}, |
|||
extends: [ |
|||
"airbnb-base", |
|||
], |
|||
rules: { |
|||
"no-param-reassign": "off", |
|||
"no-plusplus": "off", |
|||
"object-shorthand": "off", |
|||
"prefer-destructuring": "off", |
|||
"prefer-template": "off", |
|||
}, |
|||
}; |
|||
// https://travishorn.com/setting-up-eslint-on-vs-code-with-airbnb-javascript-style-guide-6eb78a535ba6
|
@ -1,9 +1,9 @@ |
|||
import Vue from 'vue'; |
|||
|
|||
const vm = new Vue({ |
|||
const vm = new Vue({ // eslint-disable-line no-unused-vars
|
|||
el: '#mail-app', |
|||
delimiters: ['[[', ']]'], |
|||
data: { |
|||
messages: [] |
|||
messages: [], |
|||
}, |
|||
}); |
@ -1,10 +1,7 @@ |
|||
export default function simpleShortcut(shortcut) { |
|||
if (shortcut === null) { |
|||
shortcut = ''; |
|||
} else { |
|||
shortcut = shortcut.replace('ctrl', 'C'); |
|||
shortcut = shortcut.replace('shift', 'S'); |
|||
shortcut = shortcut.split(' ').join('-'); |
|||
} |
|||
return shortcut; |
|||
let simplified = shortcut === null ? '' : shortcut; |
|||
simplified = simplified.replace('ctrl', 'C'); |
|||
simplified = simplified.replace('shift', 'S'); |
|||
simplified = simplified.split(' ').join('-'); |
|||
return simplified; |
|||
} |
Write
Preview
Loading…
Cancel
Save