Skip to content

Commit

Permalink
refactor: restructure scripts and remove the eslint compat type
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Jan 22, 2024
1 parent 5b7fe8b commit 4b29c6d
Show file tree
Hide file tree
Showing 36 changed files with 1,747 additions and 1,001 deletions.
15 changes: 15 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineBuildConfig } from 'unbuild';

export default defineBuildConfig({
entries: [
'src/index',
],
declaration: true,
clean: true,
rollup: {
emitCJS: true,
},
externals: [
'@typescript-eslint/utils',
],
});
4 changes: 2 additions & 2 deletions docs/rules/no-deprecated-classes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: '@rotki/no-deprecated-classes'
description: disallow the usage of vuetify css classes since they are replaced with tailwindcss
since: 0.0.1
since: v0.0.1
---

# @rotki/no-deprecated-classes
Expand Down Expand Up @@ -65,7 +65,7 @@ This rule reports usages of deprecated css classes in the code.

## :rocket: Version

This rule was introduced in @rotki/eslint-plugin v0.0.1
This rule was introduced in `@rotki/eslint-plugin` v0.0.1

## :mag: Implementation

Expand Down
6 changes: 3 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const rotki = require('@rotki/eslint-config').default;
import rotki from '@rotki/eslint-config';

module.exports = rotki({
export default rotki({
typescript: {
tsconfigPath: 'tsconfig.json',
},
Expand All @@ -24,7 +24,7 @@ module.exports = rotki({
'unicorn/prefer-top-level-await': 'off',
},
}, {
files: ['**/.vitepress/config.mts'],
files: ['**/*.?([cm])ts'],
rules: {
'import/no-default-export': 'off',
},
Expand Down
36 changes: 23 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@rotki/eslint-plugin",
"version": "0.0.3",
"packageManager": "[email protected]",
"type": "commonjs",
"type": "module",
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/rotki/eslint-plugin/issues"
Expand All @@ -15,30 +15,40 @@
"files": [
"dist"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
}
},
"sideEffects": false,
"scripts": {
"clean": "rimraf .nyc_output coverage dist docs/.vitepress/dist",
"coverage": "nyc report --reporter lcov && opener coverage/lcov-report/index.html",
"generate": "ts-node scripts/update.ts",
"generate": "node --experimental-specifier-resolution=node --loader ts-node/esm scripts/update-rule-docs.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"build": "tsc --project ./tsconfig.build.json",
"build": "unbuild",
"dev": "unbuild --stub",
"prepublishOnly": "pnpm run build",
"test": "mocha --require ts-node/register/transpile-only \"./tests/**/*.ts\"",
"test:debug": "mocha --require ts-node/register/transpile-only \"./tests/**/*.ts\"",
"test:coverage": "nyc mocha --require ts-node/register/transpile-only \"./tests/**/*.ts\" --timeout 60000",
"new": "ts-node ./scripts/new-rule.ts",
"test": "vitest",
"new": "node --experimental-specifier-resolution=node --loader ts-node/esm ./scripts/new-rule.ts",
"docs": "vitepress dev docs",
"docs:build": "vitepress build docs",
"prepare": "husky install",
"typecheck": "tsc --noEmit",
"release": "bumpp -r --no-push"
},
"peerDependencies": {
"eslint": "^8.0.0"
"eslint": "^8.0.0 || ^9.0.0"
},
"dependencies": {
"@typescript-eslint/utils": "6.19.0",
"eslint-compat-utils": "0.4.1",
"jsonc-eslint-parser": "2.4.0",
"vue-eslint-parser": "9.4.0",
"yaml-eslint-parser": "1.2.2"
Expand All @@ -56,12 +66,12 @@
"eslint": "8.56.0",
"husky": "8.0.3",
"lint-staged": "15.2.0",
"mocha": "10.2.0",
"nyc": "15.1.0",
"rimraf": "5.0.5",
"ts-node": "10.9.2",
"typescript": "5.3.3",
"vitepress": "1.0.0-rc.39"
"unbuild": "2.0.0",
"vitepress": "1.0.0-rc.39",
"vitest": "1.2.1"
},
"engines": {
"node": ">=18.0.0",
Expand Down
Loading

0 comments on commit 4b29c6d

Please sign in to comment.