mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-12 19:26:13 +09:00
remove timer and simon
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Default settings for Electron applications.
|
||||
*/
|
||||
module.exports = {
|
||||
settings: {
|
||||
'import/core-modules': ['electron'],
|
||||
},
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* unopinionated config. just the things that are necessarily runtime errors
|
||||
* waiting to happen.
|
||||
* @type {Object}
|
||||
*/
|
||||
module.exports = {
|
||||
plugins: ['import'],
|
||||
rules: { 'import/no-unresolved': 2
|
||||
, 'import/named': 2
|
||||
, 'import/namespace': 2
|
||||
, 'import/default': 2
|
||||
, 'import/export': 2
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* - adds platform extensions to Node resolver
|
||||
*/
|
||||
module.exports = {
|
||||
settings: {
|
||||
'import/resolver': {
|
||||
node: {
|
||||
// Note: will not complain if only _one_ of these files exists.
|
||||
extensions: ['.js', '.web.js', '.ios.js', '.android.js'],
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Adds `.jsx` as an extension, and enables JSX parsing.
|
||||
*
|
||||
* Even if _you_ aren't using JSX (or .jsx) directly, if your dependencies
|
||||
* define jsnext:main and have JSX internally, you may run into problems
|
||||
* if you don't enable these settings at the top level.
|
||||
*/
|
||||
module.exports = {
|
||||
|
||||
settings: {
|
||||
'import/extensions': ['.js', '.jsx'],
|
||||
},
|
||||
|
||||
parserOptions: {
|
||||
ecmaFeatures: { jsx: true },
|
||||
},
|
||||
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* The basics.
|
||||
* @type {Object}
|
||||
*/
|
||||
module.exports = {
|
||||
rules: {
|
||||
// analysis/correctness
|
||||
'import/no-unresolved': 'error',
|
||||
'import/named': 'error',
|
||||
'import/namespace': 'error',
|
||||
'import/default': 'error',
|
||||
'import/export': 'error',
|
||||
|
||||
// red flags (thus, warnings)
|
||||
'import/no-named-as-default': 'warn',
|
||||
'import/no-named-as-default-member': 'warn',
|
||||
'import/no-duplicates': 'warn',
|
||||
'import/unambiguous': 'warn',
|
||||
},
|
||||
|
||||
// need all these for parsing dependencies (even if _your_ code doesn't need
|
||||
// all of them)
|
||||
parserOptions: {
|
||||
sourceType: 'module',
|
||||
ecmaVersion: 6,
|
||||
ecmaFeatures: { experimentalObjectRestSpread: true },
|
||||
},
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Rules in progress.
|
||||
*
|
||||
* Do not expect these to adhere to semver across releases.
|
||||
* @type {Object}
|
||||
*/
|
||||
module.exports = {
|
||||
plugins: ['import'],
|
||||
rules: {
|
||||
'import/no-deprecated': 1,
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* more opinionated config.
|
||||
* @type {Object}
|
||||
*/
|
||||
module.exports = {
|
||||
plugins: ['import'],
|
||||
rules: {
|
||||
'import/no-named-as-default': 1,
|
||||
'import/no-named-as-default-member': 1,
|
||||
'import/no-duplicates': 1,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user