2020-04-18 19:00:27 +02:00
|
|
|
const eslintrc = `module.exports = {
|
|
|
|
env: {
|
|
|
|
commonjs: true,
|
|
|
|
es6: true,
|
|
|
|
node: true
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'@scode'
|
|
|
|
],
|
|
|
|
globals: {
|
|
|
|
Atomics: 'readonly',
|
|
|
|
SharedArrayBuffer: 'readonly'
|
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2018
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-04-23 17:30:12 +02:00
|
|
|
const eslintrc_ts = `module.exports = {
|
|
|
|
env: {
|
|
|
|
commonjs: true,
|
|
|
|
es6: true,
|
|
|
|
node: true
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'@scode/eslint-config-ts'
|
|
|
|
],
|
|
|
|
globals: {
|
|
|
|
Atomics: 'readonly',
|
|
|
|
SharedArrayBuffer: 'readonly'
|
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2018
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-04-18 19:00:27 +02:00
|
|
|
const gitignore = `/node_modules/
|
|
|
|
/dist/
|
|
|
|
/.nyc_output/
|
|
|
|
/coverage/
|
|
|
|
`;
|
|
|
|
|
|
|
|
const npmrc = `@scode:registry=https://npm.scode.ovh
|
|
|
|
`;
|
|
|
|
|
2020-04-23 16:19:31 +02:00
|
|
|
const tsconfig = `{
|
|
|
|
"compilerOptions": {
|
|
|
|
"target": "es5",
|
|
|
|
"module": "commonjs",
|
|
|
|
"outDir": "./dist",
|
|
|
|
"rootDir": "./lib",
|
|
|
|
"strict": true,
|
|
|
|
"esModuleInterop": true,
|
2020-04-23 18:09:42 +02:00
|
|
|
"forceConsistentCasingInFileNames": true,
|
|
|
|
"declaration": true
|
2020-04-23 16:19:31 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-05-04 12:23:06 +02:00
|
|
|
const eslintignore = `/dist/
|
2020-04-27 10:12:51 +02:00
|
|
|
*.d.ts
|
2020-04-23 17:58:04 +02:00
|
|
|
`;
|
|
|
|
|
2020-05-04 12:23:06 +02:00
|
|
|
export { eslintrc, gitignore, npmrc, tsconfig, eslintrc_ts, eslintignore };
|