Compare commits
10 Commits
ee26ac9e3e
...
e603eafc8d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e603eafc8d | ||
|
|
4318f71ae0 | ||
|
|
a94353118c | ||
|
|
c4bd920b1e | ||
|
|
b2c3b631c1 | ||
|
|
017166ab66 | ||
|
|
b904f71fac | ||
|
|
02db3e05bc | ||
|
|
f9ae133511 | ||
|
|
1b36fc17e8 |
29
.github/workflows/release.yml
vendored
Normal file
29
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
|
||||
- name: Install pnpm
|
||||
run: npm install -g pnpm
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: pnpm release
|
||||
19
.releaserc
Normal file
19
.releaserc
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"branches": ["main"],
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
[
|
||||
"@semantic-release/npm",
|
||||
{
|
||||
"npmPublish": true,
|
||||
"tarballDir": "dist"
|
||||
}
|
||||
],
|
||||
"@semantic-release/github",
|
||||
{
|
||||
"path": "@semantic-release/git",
|
||||
"assets": ["package.json"]
|
||||
}
|
||||
]
|
||||
}
|
||||
29
configs/node.js
Normal file
29
configs/node.js
Normal file
@ -0,0 +1,29 @@
|
||||
const auto = require('eslint-config-canonical/configurations/auto');
|
||||
const node = require('eslint-config-canonical/configurations/node');
|
||||
const sonarjs = require('eslint-plugin-sonarjs');
|
||||
const rules = require('../rules');
|
||||
|
||||
/** @type {import('eslint').Linter.Config} */
|
||||
module.exports = [
|
||||
{ name: 'ESLint Config Awesome - Node Typescript' },
|
||||
...auto,
|
||||
node.recommended,
|
||||
sonarjs.configs.recommended,
|
||||
{
|
||||
plugins: {
|
||||
import: require('eslint-plugin-import'),
|
||||
},
|
||||
},
|
||||
rules.common,
|
||||
rules.sonar,
|
||||
{
|
||||
ignores: [
|
||||
'**/node_modules',
|
||||
'**/package-lock.json',
|
||||
'**/pnpm-lock.yaml',
|
||||
'**/package.json',
|
||||
'**/tsconfig.json',
|
||||
'**/eslint.config.js',
|
||||
],
|
||||
},
|
||||
];
|
||||
2
configs/react-typescript.js
vendored
2
configs/react-typescript.js
vendored
@ -5,7 +5,7 @@ const pluginNext = require('@next/eslint-plugin-next');
|
||||
|
||||
/** @type {import('eslint').Linter.Config} */
|
||||
module.exports = [
|
||||
{ name: 'ESLint config awesome' },
|
||||
{ name: 'ESLint Config Awesome - React/Next Typescript' },
|
||||
...auto,
|
||||
sonarjs.configs.recommended,
|
||||
{
|
||||
|
||||
27
configs/typescript.js
Normal file
27
configs/typescript.js
Normal file
@ -0,0 +1,27 @@
|
||||
const auto = require('eslint-config-canonical/configurations/auto');
|
||||
const sonarjs = require('eslint-plugin-sonarjs');
|
||||
const rules = require('../rules');
|
||||
|
||||
/** @type {import('eslint').Linter.Config} */
|
||||
module.exports = [
|
||||
{ name: 'ESLint Config Awesome - Typescript' },
|
||||
...auto,
|
||||
sonarjs.configs.recommended,
|
||||
{
|
||||
plugins: {
|
||||
import: require('eslint-plugin-import'),
|
||||
},
|
||||
},
|
||||
rules.common,
|
||||
rules.sonar,
|
||||
{
|
||||
ignores: [
|
||||
'**/node_modules',
|
||||
'**/package-lock.json',
|
||||
'**/pnpm-lock.yaml',
|
||||
'**/package.json',
|
||||
'**/tsconfig.json',
|
||||
'**/eslint.config.js',
|
||||
],
|
||||
},
|
||||
];
|
||||
4
index.js
4
index.js
@ -1,3 +1,5 @@
|
||||
const reactTypescript = require('./configs/react-typescript');
|
||||
const typescript = require('./configs/typescript');
|
||||
const node = require('./configs/node');
|
||||
|
||||
module.exports = { 'react-typescript': reactTypescript };
|
||||
module.exports = { 'react-typescript': reactTypescript, typescript, node };
|
||||
|
||||
24
package.json
24
package.json
@ -1,18 +1,26 @@
|
||||
{
|
||||
"name": "@vchikalkin/eslint-config-awesome",
|
||||
"version": "2.0.6",
|
||||
"version": "2.2.2",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"eslint-config-canonical": "^44.3.33",
|
||||
"eslint-plugin-sonarjs": "^3.0.1"
|
||||
"eslint-config-canonical": "^44.3.43",
|
||||
"eslint-plugin-sonarjs": "^3.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next/eslint-plugin-next": "^15.0.4",
|
||||
"eslint": "^9.15.0",
|
||||
"eslint-plugin-canonical": "^5.0.0",
|
||||
"@next/eslint-plugin-next": "^15.2.0",
|
||||
"@semantic-release/changelog": "^6.0.3",
|
||||
"@semantic-release/git": "^10.0.1",
|
||||
"@semantic-release/github": "^11.0.1",
|
||||
"@semantic-release/npm": "^12.0.1",
|
||||
"eslint": "^9.17.0",
|
||||
"eslint-plugin-canonical": "^5.1.3",
|
||||
"semantic-release": "^24.2.1",
|
||||
"typescript": "^5"
|
||||
},
|
||||
"scripts": {
|
||||
"release": "semantic-release"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
@ -31,8 +39,8 @@
|
||||
"zod"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"@next/eslint-plugin-next": "^15.0.3",
|
||||
"eslint-plugin-canonical": "^5.0.0"
|
||||
"@next/eslint-plugin-next": "^15.2.0",
|
||||
"eslint-plugin-canonical": "^5.1.3"
|
||||
},
|
||||
"packageManager": "pnpm@9.14.2+sha512.6e2baf77d06b9362294152c851c4f278ede37ab1eba3a55fda317a4a17b209f4dbb973fb250a77abc463a341fcb1f17f17cfa24091c4eb319cda0d9b84278387"
|
||||
}
|
||||
|
||||
5060
pnpm-lock.yaml
generated
5060
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user