Skip to content

Commit

Permalink
fix: implement eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
6eDesign committed Aug 5, 2019
1 parent 1da766b commit d8bd8cf
Show file tree
Hide file tree
Showing 22 changed files with 389 additions and 335 deletions.
28 changes: 28 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
env: {
browser: true,
es6: true
},
// extends: 'eslint:recommended',
extends: 'airbnb-base/legacy',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: [
'svelte3'
],
overrides: [
{
files: ['src/**/*.svelte'],
processor: 'svelte3/svelte3'
}
],
rules: {

}
};
15 changes: 15 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"eslint.autoFixOnSave": true,
"files.eol": "\n",
"files.associations": {
"*.svelte": "html"
},
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
}
]
}
10 changes: 5 additions & 5 deletions docs/bundle.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d8bd8cf

Please sign in to comment.