Compare commits

...

72 Commits

Author SHA1 Message Date
1e065d96d8 update epp
Some checks failed
continuous-integration/drone/push Build is failing
2021-04-12 07:49:40 +02:00
c238d69d45 update dependencies
All checks were successful
continuous-integration/drone/push Build is passing
2020-11-26 07:35:59 +01:00
ac40dbf8c2 fix
All checks were successful
continuous-integration/drone/push Build is passing
2020-11-21 19:14:48 +01:00
e4d9f8f4e7 update
All checks were successful
continuous-integration/drone/push Build is passing
2020-11-21 19:09:13 +01:00
25cd8d3df0 allow css import with sideeffects
Some checks failed
continuous-integration/drone/push Build is failing
2020-11-21 19:07:47 +01:00
958b116dcb update
All checks were successful
continuous-integration/drone/push Build is passing
2020-11-02 19:22:45 +01:00
1949d8a955 update-scanner: automatic update
Some checks failed
continuous-integration/drone/push Build is failing
eslint: 7.7.0 ==> 7.8.1 minor
2020-09-07 13:13:27 +02:00
4d172c427a update-scanner: automatic update
Some checks failed
continuous-integration/drone/push Build is failing
eslint: 7.6.0 ==> 7.7.0 minor
2020-08-19 08:05:48 +02:00
6e9dc19f15 fix drone config
Some checks failed
continuous-integration/drone/push Build is failing
2020-08-07 08:12:12 +02:00
5d699c4488 update-scanner: automatic update
Some checks failed
continuous-integration/drone/push Build is failing
eslint: 7.5.0 ==> 7.6.0 minor
2020-08-04 12:35:58 +02:00
3a2a41e025 update-scanner: automatic update
All checks were successful
continuous-integration/drone/push Build is passing
@sapphirecode/eslint-config: 2.1.15 ==> 2.1.16 minor
2020-07-19 14:48:45 +02:00
8daa542e5d fix
Some checks failed
continuous-integration/drone/push Build is failing
2020-07-19 14:35:14 +02:00
0c8dc0aff8 update-scanner: automatic update
Some checks failed
continuous-integration/drone/push Build is failing
eslint: 7.4.0 ==> 7.5.0 minor
2020-07-19 11:52:52 +02:00
bccbc060a9 update-scanner: automatic update
All checks were successful
continuous-integration/drone/push Build is passing
@sapphirecode/eslint-config: 2.1.13 ==> 2.1.15 minor
eslint: 7.3.1 ==> 7.4.0 minor
2020-07-10 12:13:18 +02:00
9ba53c30ee switch to drone
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-10 08:27:37 +02:00
db454e27c3 update-scanner: automatic update
@sapphirecode/eslint-config: 2.1.12 ==> 2.1.13 minor
eslint-plugin-import: 2.21.2 ==> 2.22.0 minor
2020-07-01 09:12:01 +02:00
4e7997afe0 add vue extension 2020-06-26 14:50:11 +02:00
9308674bd6 update-scanner: automatic update
@sapphirecode/eslint-config: 2.1.11 ==> 2.1.12 minor
2020-06-24 12:31:55 +02:00
5cdf0fde74 update 2020-06-24 10:24:06 +02:00
3ac44ab754 update-scanner: automatic update
@sapphirecode/eslint-config: 2.1.9 ==> 2.1.10 minor
eslint: 7.2.0 ==> 7.3.0 minor
2020-06-22 08:02:05 +02:00
a050c57115 update-scanner: automatic update
@sapphirecode/eslint-config: 2.1.8 ==> 2.1.9 minor
eslint: 7.1.0 ==> 7.2.0 minor
eslint-plugin-import: 2.20.2 ==> 2.21.2 minor
2020-06-11 20:08:52 +02:00
e2826e844c update 2020-06-02 08:04:23 +02:00
3b159793fb update-scanner: automatic update
@sapphirecode/eslint-config: 2.1.6 ==> 2.1.7 minor
eslint: 7.0.0 ==> 7.1.0 minor
2020-05-23 17:57:21 +02:00
738bb91384 update-scanner: automatic update
@sapphirecode/eslint-config: 2.1.2 ==> 2.1.6 minor
2020-05-17 19:17:35 +02:00
e5ead8a9e4 remove broken package quality 2020-05-17 19:12:30 +02:00
609fcc11ff license 2020-05-17 19:09:22 +02:00
55e13955ae update jenkins.js 2020-05-15 13:16:08 +02:00
616e6d7ee7 unix line endings 2020-05-13 21:27:42 +02:00
6e2541371e cleanup, update to eslint 7 2020-05-13 20:50:45 +02:00
ffbb0c61d7 adapt jenkins.js 2020-05-13 16:03:26 +02:00
218f4d8384 adapt jenkins.js 2020-05-13 15:52:17 +02:00
4a50cc343e update-scanner: automatic update
@sapphirecode/eslint-config: 2.0.24 ==> 2.0.25 minor
2020-05-08 13:20:10 +02:00
05bf210a40 update-scanner: automatic update
@sapphirecode/eslint-config: 2.0.23 ==> 2.0.24 minor
2020-05-07 10:08:23 +02:00
a886f258a8 update 2020-05-06 08:29:55 +02:00
1c0bec2a35 update 2020-05-06 08:26:26 +02:00
7c127cc9b1 update 2020-05-06 08:10:01 +02:00
4fc49b112c fix 2020-05-06 07:50:47 +02:00
bb23c58243 fix 2020-05-06 07:32:56 +02:00
ff8ecf340c fix 2020-05-06 07:28:39 +02:00
7b08a3c7ae fix 2020-05-05 20:01:09 +02:00
365f9ea5ec fix publish 2020-05-05 19:49:55 +02:00
006f7b1962 move to @sapphirecode scope 2020-05-05 19:22:36 +02:00
7e6fe49778 update-scanner: automatic update
@scode/eslint-config: 2.0.15 ==> 2.0.16 minor
2020-05-04 20:51:13 +02:00
ae4c5d1cf2 add compile script 2020-05-04 20:33:55 +02:00
079b49d0e1 update-scanner: automatic update
@scode/eslint-config: 2.0.13 ==> 2.0.15 minor
2020-05-03 17:20:06 +02:00
c07e7cfb43 only publish necessary files 2020-05-03 16:57:12 +02:00
6276d5170f update 2020-04-28 10:46:12 +02:00
e2d2945b0f update 2020-04-27 15:39:36 +02:00
c30b3e1ae4 update-scanner: automatic update
@scode/eslint-config: 2.0.10 ==> 2.0.11 minor
2020-04-21 11:09:34 +02:00
6adb1dcba6 remove annoying rules 2020-04-18 16:58:43 +02:00
cd6b75c298 update-scanner: automatic update
@scode/eslint-config: 2.0.8 ==> 2.0.10 minor
2020-04-14 15:31:55 +02:00
accdb797ab fix lint script 2020-04-14 14:54:19 +02:00
05793341e2 update 2020-04-09 20:12:00 +02:00
2cf586bbfa do not require default export 2020-04-09 19:36:50 +02:00
1b6db178ac update-scanner: automatic update
@scode/eslint-config: 2.0.6 ==> 2.0.7 minor
2020-04-09 09:31:33 +02:00
d8737c548d fix 2020-04-09 09:19:22 +02:00
d91b21d6a4 extensions for import 2020-04-09 09:04:51 +02:00
d6d80221ca lint 2020-04-09 08:58:19 +02:00
ec90c4fb31 no file extension on ts import 2020-04-09 08:58:02 +02:00
4a23279b86 update 2020-04-08 11:41:49 +02:00
4a51ba5291 enforce file extension on import 2020-04-08 11:38:19 +02:00
6b79a1457f fix 2020-04-08 11:29:26 +02:00
5203b371f4 don't require named default export 2020-04-08 11:27:58 +02:00
26e0e7d346 update 2020-04-08 11:12:18 +02:00
bc72221bd9 update 2020-04-08 10:36:25 +02:00
d655bdb616 allow es6 syntax 2020-04-08 10:25:25 +02:00
485f16bab6 fix name 2020-04-06 13:57:06 +02:00
d3a9c22651 update-scanner: automatic update 2020-04-06 09:55:44 +02:00
3b5824edea update-scanner: automatic update 2020-04-06 08:43:24 +02:00
2153248df1 fix 2020-04-06 08:39:08 +02:00
756dcde085 fix 2020-04-06 08:32:02 +02:00
da4727a974 lint 2020-04-06 08:28:51 +02:00
14 changed files with 696 additions and 755 deletions

14
.drone.yml Normal file
View File

@ -0,0 +1,14 @@
kind: pipeline
name: default
steps:
- name: setup
image: registry:5000/node-build
commands:
- yarn
- curl https://git.scode.ovh/Timo/standard/raw/branch/master/ci.js > ci.js
- name: build
image: registry:5000/node-build
commands:
- node ci.js

1
.eslintignore Normal file
View File

@ -0,0 +1 @@
*.d.ts

View File

@ -1,8 +1,8 @@
/*
* Copyright (C) Sapphirecode - All Rights Reserved
* This file is part of SCode-Eslint-Config which is released under BSD-3-Clause.
* This file is part of eslint-config-es6 which is released under MIT.
* See file 'LICENSE' for full license details.
* Created by Timo Hocker <timo@scode.ovh>, March 2020
* Created by Timo Hocker <timo@scode.ovh>, May 2020
*/
module.exports = {
@ -29,9 +29,9 @@ module.exports = {
'array-bracket-newline': 'off',
'max-len': 'off',
'func-call-spacing': 'off',
'semi': 'off',
'curly': 'off',
'strict': 'off',
semi: 'off',
curly: 'off',
strict: 'off',
'brace-style': 'off',
'no-magic-numbers': 'off'
}

2
.gitignore vendored
View File

@ -1 +1 @@
/node_modules/
/node_modules/

8
.liconfig.json Normal file
View File

@ -0,0 +1,8 @@
{
"has_license": true,
"license": "MIT",
"author": "Timo Hocker",
"company": "Sapphirecode",
"email": "timo@scode.ovh",
"software": "eslint-config-es6"
}

1
.npmrc
View File

@ -1 +0,0 @@
@scode:registry=https://npm.scode.ovh

13
CHANGELOG.md Normal file
View File

@ -0,0 +1,13 @@
# Changelog
## 1.2.0
allow css / scss imports without assignment
## 1.1.0
update to eslint 7.0
## 1.0.0
initial release

23
Jenkinsfile vendored
View File

@ -1,23 +0,0 @@
pipeline {
agent any
environment {
VERSION = VersionNumber([
versionNumberString:
'${BUILDS_ALL_TIME}',
versionPrefix: '1.0.',
worstResultForIncrement: 'SUCCESS'
])
}
stages {
stage('Building') {
steps {
script {
currentBuild.displayName = env.VERSION
}
sh 'yarn ci ${VERSION}'
}
}
}
}

30
LICENSE
View File

@ -1,29 +1,7 @@
Copyright (c) 2020, Timo Hocker
MIT License Copyright (c) <year> <author>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of scode-eslint-config nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1,20 +1,18 @@
# Sapphirecode ESLint configuration
# @sapphirecode/eslint-config-es6
Javascript coding standard used by Sapphirecode
version: 1.2.x
scode eslint standard configuration for es6
## Installation
to install this module you have to add the following line to your .npmrc
npm:
```npmrc
@scode:registry=https://npm.scode.ovh
```
> npm i --save-dev @sapphirecode/eslint-config-es6
then install the module and eslint
yarn:
```sh
npm i --save-dev @scode/eslint-es6 eslint
```
> yarn add --dev @sapphirecode/eslint-config-es6
then create a file named .eslintrc.js with the following contents.
@ -28,9 +26,11 @@ module.exports = {
node: true
},
extends: [
'@scode/eslint-es6'
'@sapphirecode/eslint-config-es6'
]
}
```
after that you can run eslint.
## License
BSD-3-Clause © Timo Hocker <timo@scode.ovh>

View File

@ -1,8 +1,8 @@
/*
* Copyright (C) Sapphirecode - All Rights Reserved
* This file is part of SCode-Eslint-Config which is released under BSD-3-Clause.
* This file is part of eslint-config-es6 which is released under MIT.
* See file 'LICENSE' for full license details.
* Created by Timo Hocker <timo@scode.ovh>, March 2020
* Created by Timo Hocker <timo@scode.ovh>, May 2020
*/
module.exports = {
@ -12,45 +12,67 @@ module.exports = {
parser: 'babel-eslint',
extends: [
'@scode',
'@sapphirecode'
],
plugins: [
'eslint-plugin-import',
'eslint-plugin-import'
],
parserOptions: {
sourceType: 'module'
},
settings: {
'import/extensions': ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.vue'],
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.vue']
}
}
},
rules: {
'import/no-unresolved': 'error',
'import/named': 'error',
'import/default': 'error',
'import/namespace': 'error',
'import/no-absolute-path': 'error',
'import/no-dynamic-require': 'warn',
'import/no-webpack-loader-syntax': 'error',
'import/no-self-import': 'error',
'import/no-cycle': 'error',
'import/no-useless-path-segments': 'error',
'import/no-unused-modules': 'error',
'import/export': 'error',
'import/no-named-as-default': 'error',
'import/no-named-as-default-member': 'error',
'import/no-deprecated': 'error',
'import/no-extraneous-dependencies': 'error',
'import/no-mutable-exports': 'error',
'import/unambiguous': 'error',
'import/no-commonjs': 'error',
'import/no-amd': 'error',
'import/first': 'error',
'import/exports-last': 'error',
'import/no-duplicates': 'error',
'import/no-namespace': 'error',
'import/extensions': 'error',
'import/order': 'error',
'import/newline-after-import': 'error',
'import/prefer-default-export': 'error',
'import/no-unassigned-import': 'error',
'import/no-named-default': 'error',
'import/no-anonymous-default-export': 'error',
'import/group-exports': 'error'
// deactivate commonjs rules
'node/no-unsupported-features/es-syntax': 'off',
// import
'import/no-unresolved': 'error',
'import/named': 'error',
'import/default': 'error',
'import/namespace': 'error',
'import/no-absolute-path': 'error',
'import/no-dynamic-require': 'warn',
'import/no-webpack-loader-syntax': 'error',
'import/no-self-import': 'error',
'import/no-cycle': 'error',
'import/no-useless-path-segments': 'error',
'import/no-unused-modules': 'error',
'import/export': 'error',
'import/no-named-as-default': 'error',
'import/no-named-as-default-member': 'error',
'import/no-deprecated': 'error',
'import/no-extraneous-dependencies': 'error',
'import/no-mutable-exports': 'error',
'import/unambiguous': 'error',
'import/no-commonjs': 'error',
'import/no-amd': 'error',
'import/first': 'error',
'import/exports-last': 'error',
'import/no-duplicates': 'error',
'import/no-namespace': 'error',
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
ts: 'never'
}
],
'import/order': 'error',
'import/newline-after-import': 'error',
'import/prefer-default-export': 'off',
'import/no-unassigned-import': ['error', { allow: ['**/*.css', '**/*.scss'] }],
'import/no-named-default': 'error'
}
}

View File

@ -1,34 +0,0 @@
/*
* Copyright (C) Sapphirecode - All Rights Reserved
* This file is part of SCode-Eslint-Config which is released under BSD-3-Clause.
* See file 'LICENSE' for full license details.
* Created by Timo Hocker <timo@scode.ovh>, March 2020
*/
/* eslint-disable no-process-exit */
/* eslint-disable no-console */
/* eslint-disable no-sync */
'use strict';
const fs = require ('fs');
const child_process = require ('child_process');
const pkg = JSON.parse (fs.readFileSync ('package.json', 'utf-8'));
[
,, pkg.version
] = process.argv;
fs.writeFileSync ('package.json', JSON.stringify (pkg, null, 2));
child_process.execSync ('yarn lint', { stdio: 'inherit' });
if (typeof pkg.scripts !== 'undefined' && typeof pkg.scripts.test === 'string')
child_process.execSync ('yarn test', { stdio: 'inherit' });
child_process.exec ('git log -1 | grep \'\\[no publish\\]\'')
.addListener ('exit', (code) => {
if (code === 0) {
console.log ('build not marked for deployment');
process.exit (1);
}
else
child_process.execSync ('yarn publish');
});

View File

@ -1,35 +1,43 @@
{
"name": "@scode/eslint-es6",
"version": "1.0.0",
"name": "@sapphirecode/eslint-config-es6",
"version": "1.2.2",
"description": "scode eslint es6 configuration",
"main": "index.js",
"scripts": {
"lint": "eslint .",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs",
"test": "echo \"no test\"",
"ci": "yarn --frozen-lockfile && node jenkins.js"
"compile": "tsc --allowJs --declaration --emitDeclarationOnly index.js"
},
"repository": {
"type": "git",
"url": "https://git.scode.ovh/timo/eslint-es6.git"
},
"peerDependencies": {
"eslint": ">=6.8.0"
"eslint": ">=7.0.0"
},
"keywords": [
"eslint",
"eslintconfig"
"eslintconfig",
"es6"
],
"author": "Timo Hocker",
"license": "BSD-3-Clause",
"author": {
"name": "Timo Hocker",
"email": "timo@scode.ovh"
},
"bugs": "https://redmine.scode.ovh/projects/eslint-es6",
"license": "MIT",
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1"
"eslint": "^7.0.0",
"eslint-config-standard": "^16.0.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0"
},
"dependencies": {
"@scode/eslint-config": "^2.0.1",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-node": "^11.1.0"
}
"@sapphirecode/eslint-config": "^2.1.2",
"eslint-plugin-import": "^2.20.2"
},
"files": [
"LICENSE",
"index.js"
]
}

1155
yarn.lock

File diff suppressed because it is too large Load Diff