-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from uglow/feature/upgrade-to-svelte-3
Feature/upgrade to svelte 3
- Loading branch information
Showing
130 changed files
with
15,554 additions
and
15,889 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
module.exports = { | ||
parserOptions: { | ||
ecmaVersion: 2019, | ||
sourceType: 'module', | ||
}, | ||
plugins: ['svelte3'], | ||
env: { | ||
browser: true, | ||
es6: true, | ||
}, | ||
extends: [ | ||
'plugin:import/errors', | ||
'plugin:import/warnings', | ||
'plugin:node/recommended-module', | ||
//'plugin:prettier/recommended', // This can't be used with the svelte plugin, but can be used directly :( See https://github.com/sveltejs/eslint-plugin-svelte3/blob/master/OTHER_PLUGINS.md | ||
'plugin:unicorn/recommended', | ||
], | ||
overrides: [ | ||
{ | ||
files: ['**/*.svelte'], | ||
processor: 'svelte3/svelte3', | ||
}, | ||
], | ||
|
||
rules: { | ||
'prettier/prettier': 'error', | ||
|
||
// Allow some flexibility here | ||
'unicorn/prevent-abbreviations': 'off', | ||
|
||
// Use camelCase for files (and directories - not enforced) | ||
'unicorn/filename-case': ['error', { case: 'camelCase' }], | ||
|
||
// Turn off explicit length checks | ||
'unicorn/explicit-length-check': 'off', | ||
|
||
// Turning off because it leads to many uses of the word 'error' in the same block, which is confusing | ||
// E.g. | ||
// } catch(error) { | ||
// logger.error(error); | ||
// return error(error); | ||
// } | ||
'unicorn/catch-error-name': 'off', | ||
|
||
// This rule is no good for test specs. Need to find a way to disable this for test specs | ||
'unicorn/consistent-function-scoping': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
node_modules/ | ||
dev/ | ||
dist/css/ | ||
dist/*.html | ||
dist/js/testHarness.* | ||
reports/ | ||
webdocs/ | ||
|
||
# Test reports | ||
test-reports/ | ||
|
||
# Keep .gitkeep files | ||
# +----------------------------+-------------------------------+ | ||
# | To keep an empty directory, add a .gitkeep file to it | | ||
# | and ignore the directory with a wildcard: | | ||
# | | | ||
# | /path/to/dir/* | | ||
# | | | ||
# | This will ignore the content but not the directory itself. | | ||
# +------------------------------------------------------------+ | ||
!/**/.gitkeep | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.spec.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# .prettierrc | ||
tabWidth: 2 | ||
printWidth: 120 | ||
singleQuote: true | ||
trailingComma: es5 | ||
plugins: | ||
- 'prettier-plugin-svelte' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: { | ||
node: 'current', | ||
}, | ||
}, | ||
], | ||
], | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.