diff --git a/.eslintrc.yml b/.eslintrc.yml new file mode 100644 index 000000000..df31e9cfd --- /dev/null +++ b/.eslintrc.yml @@ -0,0 +1,3 @@ +root: true +extends: + - techor diff --git a/.github/workflows/example-check.yml b/.github/workflows/example-check.yml index e92cd5c54..32b0bb558 100644 --- a/.github/workflows/example-check.yml +++ b/.github/workflows/example-check.yml @@ -29,4 +29,5 @@ jobs: cache: 'pnpm' - run: pnpm install - run: pnpm build + - run: pnpm install - run: pnpm build:examples diff --git a/package.json b/package.json index 0e4821572..21c0e9ff1 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "@master/css-extractor": "workspace:^", "@master/css-extractor.vite": "workspace:^", "@master/css-renderer": "workspace:^", + "@master/eslint-plugin-css": "workspace:^", "@swc-node/jest": "^1.6.8", "@techor/fs": "^2.5.19", "@techor/glob": "^2.5.19", diff --git a/packages/eslint-plugin/src/configs/flat.ts b/packages/eslint-plugin/src/configs/flat.ts index 6ba51c60b..26434aeeb 100644 --- a/packages/eslint-plugin/src/configs/flat.ts +++ b/packages/eslint-plugin/src/configs/flat.ts @@ -1,5 +1,5 @@ -import plugin from '../plugin'; -import config from './config'; +import plugin from '../plugin' +import config from './config' export default { plugins: { diff --git a/packages/eslint-plugin/src/configs/recommended.ts b/packages/eslint-plugin/src/configs/recommended.ts index ae4f44b02..105914ba9 100644 --- a/packages/eslint-plugin/src/configs/recommended.ts +++ b/packages/eslint-plugin/src/configs/recommended.ts @@ -1,4 +1,4 @@ -import config from './config'; +import config from './config' export default { plugins: ['@master/css'], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9c05ea430..ebb9d4e81 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,6 +17,9 @@ importers: '@master/css-renderer': specifier: workspace:^ version: link:packages/renderer + '@master/eslint-plugin-css': + specifier: workspace:^ + version: link:packages/eslint-plugin '@swc-node/jest': specifier: ^1.6.8 version: 1.6.8(@swc/core@1.3.96)(typescript@5.2.2)