diff --git a/.eslintrc.js b/.eslintrc.js index 11729473d16..7b88e098c51 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -118,7 +118,7 @@ module.exports = { tsConfigRootDir: __dirname, project: 'tsconfig.json', }, - plugins: ['@typescript-eslint', 'ember-data'], + plugins: ['@typescript-eslint', 'ember-data-internal'], extends: [ 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', @@ -131,7 +131,7 @@ module.exports = { '@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/no-redundant-type-constituents': 'off', '@typescript-eslint/no-unsafe-declaration-merging': 'off', - 'ember-data/prefer-static-type-import': 'error', + 'ember-data-internal/prefer-static-type-import': 'error', 'no-unused-vars': 'off', 'prefer-const': 'off', 'prefer-rest-params': 'off', @@ -153,7 +153,7 @@ module.exports = { tsConfigRootDir: __dirname, project: 'tsconfig.json', }, - plugins: ['@typescript-eslint', 'ember-data'], + plugins: ['@typescript-eslint', 'ember-data-internal'], extends: [ 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', @@ -164,7 +164,7 @@ module.exports = { '@typescript-eslint/no-redundant-type-constituents': 'off', '@typescript-eslint/no-unsafe-declaration-merging': 'off', '@typescript-eslint/no-unused-vars': ['error', { args: 'none' }], - 'ember-data/prefer-static-type-import': 'error', + 'ember-data-internal/prefer-static-type-import': 'error', 'no-unused-vars': 'off', 'prefer-const': 'off', 'prefer-rest-params': 'off', @@ -281,6 +281,7 @@ module.exports = { 'packages/-ember-data/lib/*.js', 'packages/private-build-infra/src/**/*.js', 'packages/unpublished-test-infra/src/**/*.js', + 'packages/eslint-plugin-ember-data/src/**/*.js', 'packages/unpublished-eslint-rules/src/**/*.js', 'packages/*/babel.config.js', 'packages/*/.ember-cli.js', diff --git a/package.json b/package.json index e4cf5ce4dc6..1163d9efaa9 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "eslint": "^8.50.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-ember": "^11.11.1", - "eslint-plugin-ember-data": "link:packages/unpublished-eslint-rules", + "eslint-plugin-ember-data-internal": "link:packages/unpublished-eslint-rules", "eslint-plugin-import": "^2.28.1", "eslint-plugin-mocha": "^10.1.0", "eslint-plugin-node": "^11.1.0", diff --git a/packages/eslint-plugin-ember-data/package.json b/packages/eslint-plugin-ember-data/package.json new file mode 100644 index 00000000000..c773fb10fe4 --- /dev/null +++ b/packages/eslint-plugin-ember-data/package.json @@ -0,0 +1,15 @@ +{ + "name": "eslint-plugin-ember-data", + "description": "ESLint rules for Applications using EmberData", + "main": "./src/index.js", + "version": "5.5.0-alpha.3", + "private": false, + "repository": { + "type": "git", + "url": "https://github.com/emberjs/data.git", + "directory": "packages/eslint-plugin-ember-data" + }, + "volta": { + "extends": "../../package.json" + } +} \ No newline at end of file diff --git a/packages/eslint-plugin-ember-data/src/index.js b/packages/eslint-plugin-ember-data/src/index.js new file mode 100644 index 00000000000..f8c3771edaa --- /dev/null +++ b/packages/eslint-plugin-ember-data/src/index.js @@ -0,0 +1,3 @@ +module.exports = { + rules: {}, +}; diff --git a/packages/eslint-plugin-ember-data/src/rules/.gitkeep b/packages/eslint-plugin-ember-data/src/rules/.gitkeep new file mode 100644 index 00000000000..e69de29bb2d diff --git a/packages/unpublished-eslint-rules/package.json b/packages/unpublished-eslint-rules/package.json index add140d7fa7..1c4e4804591 100644 --- a/packages/unpublished-eslint-rules/package.json +++ b/packages/unpublished-eslint-rules/package.json @@ -1,5 +1,5 @@ { - "name": "eslint-plugin-ember-data", + "name": "eslint-plugin-ember-data-internal", "main": "./src/index.js", "version": "5.5.0-alpha.4", "private": true, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 84d97ab20a9..01e46cbb494 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -101,7 +101,7 @@ importers: eslint-plugin-ember: specifier: ^11.11.1 version: 11.11.1(eslint@8.50.0) - eslint-plugin-ember-data: + eslint-plugin-ember-data-internal: specifier: link:packages/unpublished-eslint-rules version: link:packages/unpublished-eslint-rules eslint-plugin-import: @@ -451,6 +451,8 @@ importers: '@ember/string': injected: true + packages/eslint-plugin-ember-data: {} + packages/graph: dependencies: '@ember-data/private-build-infra':