From 875947674aa5f9aa1be5fae9db90ddbb5970bd4c Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Tue, 19 Feb 2019 02:26:38 -0500 Subject: [PATCH] Testing: Remove custom ESLint rules for import paths (#13937) --- .eslintrc.js | 75 ---------------------------------------------------- 1 file changed, 75 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 5ce3aa251459b..2f4a4f05e3e77 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -32,81 +32,6 @@ module.exports = { selector: 'ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F/]', message: 'Path access on WordPress dependencies is not allowed.', }, - { - selector: 'ImportDeclaration[source.value=/^api-fetch(\\u002F|$)/]', - message: 'Use @wordpress/api-fetch as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^blob(\\u002F|$)/]', - message: 'Use @wordpress/blob as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^block-serialization-spec-parser(\\u002F|$)/]', - message: 'Use @wordpress/block-serialization-spec-parser as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^blocks(\\u002F|$)/]', - message: 'Use @wordpress/blocks as import path instead.', - },{ - selector: 'ImportDeclaration[source.value=/^components(\\u002F|$)/]', - message: 'Use @wordpress/components as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^data(\\u002F|$)/]', - message: 'Use @wordpress/data as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^date(\\u002F|$)/]', - message: 'Use @wordpress/date as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^deprecated(\\u002F|$)/]', - message: 'Use @wordpress/deprecated as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^dom(\\u002F|$)/]', - message: 'Use @wordpress/dom as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^editor(\\u002F|$)/]', - message: 'Use @wordpress/editor as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^element(\\u002F|$)/]', - message: 'Use @wordpress/element as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^keycodes(\\u002F|$)/]', - message: 'Use @wordpress/keycodes as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^nux(\\u002F|$)/]', - message: 'Use @wordpress/nux as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^edit-post(\\u002F|$)/]', - message: 'Use @wordpress/edit-post as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^edit-widgets(\\u002F|$)/]', - message: 'Use @wordpress/edit-widgets as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^viewport(\\u002F|$)/]', - message: 'Use @wordpress/viewport as import path instead.', - }, - { - selector: 'ImportDeclaration[source.value=/^plugins(\\u002F|$)/]', - message: 'Use @wordpress/plugins as import path instead.', - }, - { - "selector": "ImportDeclaration[source.value=/^core-data$/]", - "message": "Use @wordpress/core-data as import path instead." - }, - { - "selector": "ImportDeclaration[source.value=/^block-library$/]", - "message": "Use @wordpress/block-library as import path instead." - }, { selector: 'CallExpression[callee.name="deprecated"] Property[key.name="version"][value.value=/' + majorMinorRegExp + '/]', message: 'Deprecated functions must be removed before releasing this version.',