From 1446a283bba556be0f82ac3dd7a2d1f840e24f47 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Mon, 18 Feb 2019 16:17:33 -0500 Subject: [PATCH] Testing: Remove custom ESLint rules for import paths --- .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.',