WIP - add extractor, generate snippet_data

This commit is contained in:
Stefan Fejes
2019-08-20 15:52:05 +02:00
parent 88084d3d30
commit cc8f1d8a7a
37396 changed files with 4588842 additions and 133 deletions

8
node_modules/eslint-plugin-import/config/electron.js generated vendored Normal file
View File

@ -0,0 +1,8 @@
/**
* Default settings for Electron applications.
*/
module.exports = {
settings: {
'import/core-modules': ['electron'],
},
}

14
node_modules/eslint-plugin-import/config/errors.js generated vendored Normal file
View File

@ -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
}
}

View File

@ -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
node_modules/eslint-plugin-import/config/react.js generated vendored Normal file
View File

@ -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 },
},
}

View File

@ -0,0 +1,28 @@
/**
* The basics.
* @type {Object}
*/
module.exports = {
plugins: ['import'],
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'
},
// need all these for parsing dependencies (even if _your_ code doesn't need
// all of them)
parserOptions: {
sourceType: 'module',
ecmaVersion: 2018,
},
}

12
node_modules/eslint-plugin-import/config/stage-0.js generated vendored Normal file
View File

@ -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,
}
}

21
node_modules/eslint-plugin-import/config/typescript.js generated vendored Normal file
View File

@ -0,0 +1,21 @@
/**
* Adds `.jsx`, `.ts` and `.tsx` as an extension, and enables JSX/TSX parsing.
*/
var allExtensions = ['.ts', '.tsx', '.d.ts', '.js', '.jsx'];
module.exports = {
settings: {
'import/extensions': allExtensions,
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx', '.d.ts']
},
'import/resolver': {
'node': {
'extensions': allExtensions
}
}
}
}

12
node_modules/eslint-plugin-import/config/warnings.js generated vendored Normal file
View File

@ -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,
},
}